py

For Execution of multiple lines of code in python shell:-

input:- print('nnd'); print("dnjkfns")

Output:-  nnd

               dnjkfns 


input:-print('dnfd');\

           print("snjn")

Output:-  dnfd

                snjn

x = 1; y = 2; z = 3


message = "Hello There.\nYou have come to the right place to learn Python Programming.\n" \
          "Follow the tutorials to become expert in Python. " \
          "Don't forget to share it with your friends too."
print(message)
Hello There.
You have come to the right place to learn Python Programming.
Follow the tutorials to become expert in Python. Don't forget to share it with your friends too.
math_result = 1 + 2 + 3 + 4 + \
              5 + 6 + 7 + 8 + \
              9 + 10
print(math_result)
55

Comments

Popular posts from this blog

Code to Delete all Watch Later youtube Playlist

Area of Triangle :- Given three sides(Using Heron's Formula)