DEV Community

Nishanthi A
Nishanthi A

Posted on

Python day 2

rything in python is an object.

Print() function

To print a multiline string, it must be enclosed in triple quotation marks.

Ex
print("""my name is nishanthi """)
Output: my name is nishanthi

Connection between two or more separate(sep=)

Separate's default value space.

Escape sequence:
\n, \t, etc..
For example:
Print (" Hello\nworld")
Output:hello
World

Str and int cannot be concatenated.

Separate keys: (+,-, %, *)

Top comments (0)