Taking Inputs & Printing Outputs using variables with proper presentation in Python



name=input("What is your name ?")
age=input("What is your age ?")
school=input("In which school you study?")

print("Welcome      : ",name)
print("Your age is  : ",age)
print("You study in : ",school," school")

print("The Data type of name variable is : ",type(name))
print("The Data type of age variable is : ",type(age))
print("The Data type of school variable is : ",type(school))




Output
>>>
What is your name ? Jonathan
What is your age ? 18
In which school you study? St. Thomas


Welcome      :  Jonathan
Your age is  :  18
You study in :  St. Thomas  school
The Data type of name variable is :  <class 'str'>
The Data type of age variable is :  <class 'str'>
The Data type of school variable is :  <class 'str'>
>>>



No comments

Post your comments

Powered by Blogger.