Basic Python Programs


Python Basic Syntax-Example
print("Hello,!")
print("Welcome Your's in crackcoderrank");                                                     Run Code
0utput:
Hello,! 
Welcome Your's in crackcoderrank                                                                                             
Get Input from User
a=input('Enter the Number: ')
print(a)
b=int(input("Enter the the number: "))
print(b)                                                                                                              Run Code                                    
0utput:
Enter the Number: 10
Enter the the number: 20                                                                                                                                        
Variables in Python
a = 3
b = 6
c = 4
print(a)
print(b)
print(c)                                                                                                                   Run Code
0utput:
3
6
4                                                                                          

















No comments: