Answer to Question #252244 in Python for jam

Question #252244
Write a program that asks for a student for his/her offering code in computer programming 1. Your program will determine what set the student belong based on the following:
if the offer code is 16548, the student's set is A
if the offer code is 16558, the student's set is B
if the offer code is

16568, the student's set is C
if the offer code is 17020, the student's set is D
1
Expert's answer
2021-10-16T11:02:28-0400
code =int(input("Enter the student code in computer programming: "))
#if the offer code is 16548, the student's set is A
if(code==16548):
    print("The student's set is A")
#if the offer code is 16558, the student's set is B
elif(code==16558):
    print("The student's set is B")
#if the offer code is 16568, the student's set is C
elif(code==16568):
    print("The student's set is C")
#if the offer code is 17020, the student's set is D
elif(code==17020):
    print("The student's set is D")
else:
    print("Wrong code")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS