Die Suche ergab 1 Treffer

von Matteo Fragasso
Freitag 22. Oktober 2021, 17:28
Forum: Allgemeine Fragen
Thema: None wird ausgegeben?
Antworten: 10
Zugriffe: 1913

None wird ausgegeben?

import random


def code():
i = int(random.randint(1, 10))

# = True
# print(i)
question = int(input("Enter any number from 1 to 10 here: "))

while question > 10:
print(int("The entry must be from 1 to 10 and cannot be smaller or larger"))
print(code())

while question < 0:
print(int("The ...