+ 2

#import math nums = [1, 3, 5, 2, 4] a=((len(nums)) b= a//2 if b==1: print("math.ceil(a) : ",math.ceil(a))

what was the mistake

19th Oct 2020, 6:44 PM
Abhijeet Kumar Verma
Abhijeet Kumar Verma - avatar
1 Resposta
+ 1
b does not equal 1, so none of that will work and a is not a decimal. also you don’t need the second parentheses around len(nums)
19th Oct 2020, 7:12 PM
Roderick Davis
Roderick Davis - avatar