Q1. Questions Based on Print Statement.
a) Write a Python PRINT Statement to display the message “This is my second class of Python”
b) Write a Python PRINT Statement to display your mobile number.
c) Write a Python PRINT Statement to display your favorite subject.
pls tell me this answers
Answers
Answered by
8
Required python programme ::
a)
print ("This is my second class of python")
__________________
b)
a = int(input ("Enter your mobile number")))
print(a)
__________________
c)
b = input("Enter your favourite subject :")
print (b)
Explanation:
- print() will print your message as output and your message should be enclosed inside " " to take message as string.
- To take input from user, you have to use input() function.
- int(input()) will take input from user as integer.
Similar questions