from random import randint
a, b, c, d = [randint(1, 100) for i in range(4)]
print(a, b, c, d)
if max(a, b, c, d) == a:
a = 5
elif max(a, b, c, d) == b:
b = 5
elif max(a, b, c, d) == c:
c = 5
else:
d = 5
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
from random import randint
a, b, c, d = [randint(1, 100) for i in range(4)]
print(a, b, c, d)
if max(a, b, c, d) == a:
a = 5
elif max(a, b, c, d) == b:
b = 5
elif max(a, b, c, d) == c:
c = 5
else:
d = 5
print(a, b, c, d)