Computer Science, asked by himanshugowda, 20 days ago

Write a program to accept name, age and class from the user and display the same

Answers

Answered by Mistry23
0

Answer:

n = input("Enter name of student: ")

c = int(input("Enter class of student: "))

a = int(input("Enter age of student: "))

print("Name:", n, "Class:", c, "Age:", a)

print()

print()

print("Name:", n)

print("Class:", c)

print("Age:", a)

Explanation:

OUTPUT

Enter name of student: Kavya

Enter class of student: 11

Enter age of student: 17

Name: Kavya Class: 11 Age: 17

Name: Kavya

Class: 11

Age: 17

Answered by simrankhushi1530
0

Answer:

name = input("Enter your name:")

age = input("Enter your age:")

clas = input("Enter your class/standard:")

print("Hello! Your name is",name,".","You're",age,"years old and study in",clas,"grade.")

Similar questions