Computer Science, asked by mohanbaidya2942, 19 days ago

4. Write a program in Python to input a student’s name, class, and roll number,
and then print them

Answers

Answered by AsH0460
3

Answer:

name, classes, roll = input("Enter name"), input("Enter class"), input("Enter roll number")

print("Name : ", name)

print("Class: ", classes)

print("Roll number: ", roll")

Answered by anubhav44595
4

N = input("Enter the Name:")

C = input("Enter the Class:")

R_n = int(input("Enter the roll no:"))

print("Name:",N,", Class:",C," and Roll Number:",R_n)

#sample output

Enter the Name:ABC

Enter the Class:10

Enter the roll no:1

Name: ABC , Class: 10 and Roll Number: 1

Similar questions