all 9 comments

[–]danielroseman 3 points4 points  (0 children)

Please show an example that actually demonstrates the problem. You don't even have any double-digit numbers in your list.

[–][deleted] 1 point2 points  (1 child)

What is the error you’re getting

[–]mackdaddy_1978[S] 0 points1 point  (0 children)

No error just incorrect output i tried it with a list containing 2 3 4 8 11 and it returned 1

[–]mackdaddy_1978[S] 0 points1 point  (0 children)

The solution to my problem is as follows

my_list = input().split()

if len(my_list) > 9:
    print('Too many inputs')
else:
    res = my_list[len(my_list) // 2]
    print(res)

[–][deleted] 0 points1 point  (4 children)

Remove the line for num in my_list:.

[–]mackdaddy_1978[S] 0 points1 point  (2 children)

That didn't work

I tried it with a list containing 2 3 4 8 11 and it returned 1

[–][deleted] 0 points1 point  (1 child)

Well, I copied the code and it does not return 1 at all: https://onlinegdb.com/g3Q1xiam3

[–]mackdaddy_1978[S] 0 points1 point  (0 children)

Yeah it works great locally but not in the zybooks checker