vault backup: 2023-11-13 14:55:30
This commit is contained in:
parent
ae0f191a49
commit
1cf4024677
@ -39,3 +39,18 @@ def max3 (x: int, y: int, z: int) -> int:
|
|||||||
elif ((z > x) and (z > y)):
|
elif ((z > x) and (z > y)):
|
||||||
m = z
|
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