The print function enables a python program to display textual information to user. In python the input function is used to obtain information from the user.
We can use the input function by assigning a string to a variable. (Eg: y=input())
Eg:
print("Enter your name :")
a=input()
print("Your Name is :", a)
print(type(a))
OUTPUT:
Enter your name :
reguram
Your Name is : reguram
<class 'str'>
إرسال تعليق