vault backup: 2023-11-13 14:55:30
This commit is contained in:
parent
ae0f191a49
commit
1cf4024677
@ -38,4 +38,19 @@ def max3 (x: int, y: int, z: int) -> int:
|
||||
m = y
|
||||
elif ((z > x) and (z > y)):
|
||||
m = z
|
||||
return m
|
||||
return m
|
||||
|
||||
|
||||
def main():
|
||||
print("Give a 3-digit number")
|
||||
n = int(input())
|
||||
if test(n):
|
||||
res = loop(n)
|
||||
if res != 1:
|
||||
print(res, "is the mystery number")
|
||||
else:
|
||||
print("Try again")
|
||||
main()
|
||||
else:
|
||||
print("set a 3 digits number")
|
||||
main()
|
Loading…
x
Reference in New Issue
Block a user