write a program to display your school name,class and section in python
Answers
Answered by
18
The following codes must be typed in script mode, saved and then executed.
CODE:
school = input("Enter your school name:")
Class = input("Enter your class:")
section = input("Enter your section:")
print("Your details are", school, "Class", class, "section", section)
OUTPUT:
Westchester High
11
D
NOTE: Care must be taken when typing "class". "Class" is a keyword in Python programming and will hence not be considered a variable. Capitalizing the first alphabet will change its state to that of a variable (as done in the code.)
Answered by
3
Explanation:
write write a program to display your name and school school
Similar questions