Python PT 1
Python PT 1
Str( ) bool( )
2. Input( )
Inbuilt func. Used to get input from the user. By default the input taken by this function is str. So you
have to tell it to accept it as int if you want to do integer.
3. Print( )
print(“I am” + z)
4. Assignment operators
the id() function is used to get the identity (memory address) of an object. Every object in
Python has a unique identity, which serves as its address in memory. The id() function returns this
unique identifier as an integer.