Python day 2

nishanthi_a_02e5ab1a72d22

Nishanthi A

Posted on July 10, 2024

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: (+,-, %, *)

💖 💪 🙅 🚩
nishanthi_a_02e5ab1a72d22
Nishanthi A

Posted on July 10, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related