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 11:30
To hide gridline when you display or print a worksheet
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Which of the following statements tests if students have a grade of 70 or above, as well as fewer than five absences? a: if(grade > = 70 and daysabsent < = 5): b: if(grade > = 70 or daysabsent < = 5): c: if(grade > 70 and daysabsent < = 5): d: if(grade > 70 or daysabsent < = 5): i took the test the answer is a
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
You know the right answer?
Def list_val(): my_list = []
n = int(input())
for i in range(n):
my_list. append(...
Questions
question
Mathematics, 09.02.2021 01:20
Questions on the website: 13722362