0
def main(): n = eval(input("How many numbers do you have? ")) sum = 0.0 for i in range(n): x = eval(input("Enter a number
What happen to this code, not running
2 Respuestas
+ 2
why would you use eval() for input like that? just explicitly make it a float or an int. And the code was cut off
0
Code is truncated..
https://www.sololearn.com/discuss/333866/?ref=app