0
Using a function, make a program that reads 10 whole numbers and print the largest of them on the screen. In the case of equal values, print any of the larger ones. If the largest number is multiple of the first number n
read, print n
on screen. Ten integer numbers, consider that the first number read will never be 0.
Can anyone help me with this? I’m still a Python layman.
n = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
f = int(input())
g = int(input())
h = int(input())
i = int(input())
j = int(input())
lista = [n,b,c,d,e,f,g,h,i,j]
print (max(lista))
In doing part of multiples, and in part of "ten whole numbers, consider the first number read in the nape be 0"
– user92865
I’m inputando 10 variables, and then I made a list where I managed to make python print the largest number
– user92865
n = int(input()) b = int(input()) c = int(input()) d = int(input()) e = int(input()) f = int(input()) g = int(input()) h = int(input()) i = int(input()) j = int(input() list = [n,b,c,d))
– user92865
how do I multiply the first number??
– user92865