0

What's up with 23.2?

Python core course practice 23.2. So I have this problem where none of my codes work for the practice. I even programmed the solution sololearn gives and it still incorrect. Is it a bug or am I doing something wrong? It won't let me advance till I get it right so it's a bit frustrating. fruits = ["apple", "cherry", "banana", "kiwi", "lemon", "pear", "peach", "avocado"] num = int(input()) if num < 0 or num > 7: print("wrong number") else: print(fruits[num])

11th Aug 2022, 7:01 PM
Ariel Guerrero
1 Answer
+ 1
Ariel Guerrero I didn't realise you gave your attempt. The issue is. wrong should start with a capital letter. Wrong
11th Aug 2022, 11:36 PM
Chris Coder
Chris Coder - avatar