Python input output
#Input Output
print("Hello World") #string output
#default input-output
a=5
b=10
print(a+b)
#User input
a=input("Enter to print:") #naturally it takes string input
print(a)
b=int(input("Enter to print:")) #int input
print(b)
#Input Output
Comments
Post a Comment