Python day 2
Nishanthi A
Posted on July 10, 2024
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
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
watercooler Why does a reboot make your PC run SO much faster than running all the cleaning tools you can possibly imagine?
November 30, 2024