Python - Learn Python

                               Python Basics                                                             






>>> Source-Code :


"""akash
is
cool"""
print("Hello World" ,"what'sup")
print("Next Line")
print("C:\+ akash")
print("har har mahadev\n namashivaye\tshivam")              # \n is function that is used for executing in new line
print("ab"+"c")
print("Hello\t world")                    # \t is a function that give us tab (4 spaces) in output
print("Hello\n world")
print("Hello\t@ world")
print("Hello\n* akash")
print("Hello\f world")                     # \f is a function that give us upper arrow key in output
print("Hello\n world\f")
print ("123456\r XX_XX")
print("akash \
,is \
# good boy")
print("Akash's laptop")
print('Akash "laptop"')
#print('akash's "laptop")          > We will  get error in this because we didn't use backslash(\) after akash.
print('Akash\'s "laptop"')         # backslash skip the special meaning of single quote..
print(10 *  "Akash\n")
print("C:\Let's\nacho")             # \n has special meaning in python that is new line.
print(r"C:\Let's\nacho")            # r means Raw String that removes special meaning on that statement

print("akash\"  is good ")
print("Hello\a world")                # \a work as a space        (ASCII Bell)
print("Hello\b world")                # \b work as a back space   (ASCII Backspace)
print("Hello\r world")                # \r work as Carriage Return
print("Hello "
       "world")
print("Hello\vworld")                 # \v also work as a space



Click Here for more Source-Code 


: ) if you get any type of error in Pythons then Conatct Us  : )
Python - Learn Python Python - Learn Python Reviewed by Coding Guy on July 05, 2019 Rating: 5

No comments:

Powered by Blogger.