Python for beginners

Video Explanation by Prateek Narang

Difficulty:

Easy

Concepts Used:

Basics

Solution

x = 4
print x*x

16
name = raw_input()
print "Hello "+ name
prateek
Hello prateek
a = 10
b = 20.5

a = b

print a + b
print type(a)
print type(b)

a = "hello"
print type(a)
41.0
<type 'float'>
<type 'float'>
<type 'str'>