Multiple Arguments in an Input?

前端 未结 3 1629
死守一世寂寞
死守一世寂寞 2021-01-25 16:50

Beginner Programmer here. I\'m trying to write a program that will ask a user for a quiz grade until they enter a blank input. Also, I\'m trying to get the input to go from disp

3条回答
  •  暖寄归人
    2021-01-25 17:40

    Use .format, e.g.:

    count = 0
    while grade != "" :
        count += 1
        grade = input('quiz {}:'.format(count))
    

提交回复
热议问题