MCPcopy Create free account
hub / github.com/geekcomputers/Python / pickNumber

Function pickNumber

diceV2_dynamic.py:44–53  ·  view source on GitHub ↗
(item, question_string, lower_limit)

Source from the content-addressed store, hash-verified

42# Picks a number that is at least of a certain size.
43# That means in this program, the dices being possible to use in 3 dimensional space.
44def pickNumber(item, question_string, lower_limit):
45 while True:
46 item = input(question_string)
47 item = checkInput(item)
48 if type(item) == int:
49 if item <= lower_limit:
50 print("Input too low!")
51 continue
52 else:
53 return item
54
55
56# Main-function of the program that sets up the dices for the user as they want them.

Callers 1

getDicesFunction · 0.85

Calls 1

checkInputFunction · 0.85

Tested by

no test coverage detected