Def list_val():
my_list = []
n = int(input())
for i in range(n):
my_list. append(...
Computers and Technology, 08.02.2021 21:00 itsbabyc
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()
Answers: 1
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
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
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
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
Computers and Technology, 28.01.2020 01:31
Mathematics, 28.01.2020 01:31