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, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
The option enables you to modify a slide element in most presentation applications.
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
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: 13722363