+ 1

Why error is coming in for loop

n=int(input ('enter a no') for i in range(1,n+1): n=n*i print (n)

15th Feb 2022, 5:03 AM
SHŪBHÃM
SHŪBHÃM - avatar
2 Antworten
+ 5
You're missing a closing bracket at the end of line 1.
15th Feb 2022, 5:06 AM
Simba
Simba - avatar
+ 3
Thanks bro I got it
15th Feb 2022, 5:07 AM
SHŪBHÃM
SHŪBHÃM - avatar