Roll Number Python || Break || Python
In this we are going to see a program on taking input till user enter 5 as roll number in Python Programming Language.


dict1 = {}
while True:
    name = input("Enter The Name : ")
    roll_no = int(input("Enter The Roll Number : "))
    if roll_no == 5:
        break
    dict1[roll_no] = name
print(dict1)

# Coded By DHIRAJ SHELKE

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post