Answers for "python input character limit"

0

python input character limit

def input_scores():
    scores = []
    y = 1
    for num in range(5):
        score = int(input('Please enter your score for test', y, ': '))

        while score < 0 or score > 100:
            print('Error --- all test scores must be between 0 and 100 points')
            score = int(input('Please try again: '))
        scores.append(score)
        y += 1
        return scores
Posted by: Guest on June-01-2021

Code answers related to "python input character limit"

Python Answers by Framework

Browse Popular Code Answers by Language