Computer Science, asked by bhadraarpan2, 11 hours ago

Write a program in python to display your name, roll number, class, section

& school name by giving value at runtime or dynamic Value​

Answers

Answered by MichMich0945
18

Program:

name = input("Your name: ")

rollno = input("Your roll no: ")

std = input("Your class: ")

sec = input("Your section: ")

print("\nStudent's info\n------------")

print("Name :", name)

print("Roll no. :", rollno)

print("Class :", std)

print("Section :", sec)

Output is provided in the attachment...

Hope this helps you!

Attachments:
Answered by IIBrokenBabeII
5

num1 = int(input("Enter First Number: "))

num2 = int(input("Enter Second Number: "))

print("Enter which operation would you like to perform?")

ch = input("Enter any of these char for specific operation +,-,*,/: ")

result = 0

if ch == '+':

result = num1 + num2

elif ch == '-':

result = num1 - num2

elif ch == '*':

result = num1 * num2

elif ch == '/':

result = num1 / num2

else:

print("Input character is not recognized!")

print(num1, ch , num2, ":", result)

Similar questions