vault backup: 2023-11-13 14:55:30

This commit is contained in:
Louis Gallet 2023-11-13 14:55:30 +01:00
parent ae0f191a49
commit 1cf4024677
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY

View File

@ -39,3 +39,18 @@ def max3 (x: int, y: int, z: int) -> int:
elif ((z > x) and (z > y)):
m = z
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()