subject

Def list_val(): my_list = []
n = int(input())
for i in range(n):
my_list. append(int(input()))

def is_list_even():
for i in range(len(my_list)):
if my_list[i] % 2 != 0:
return False
return True

def is_list_odd():
for i in range(len(my_list)):
if my_list[i] % 2 == 0:
return False
return True

if is_list_even():
print('all even')
elif is_list_odd():
print('all odd')
else:
print('not even or odd')

list_val()

Why am I not able to call my other functions
is_list_even()
is_list_odd()

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
You know the right answer?
Def list_val(): my_list = []
n = int(input())
for i in range(n):
my_list. append(...
Questions
Questions on the website: 13722361