Looking for Programmation en Python IDSI21024 (202400-668) test answers and solutions? Browse our comprehensive collection of verified answers for Programmation en Python IDSI21024 (202400-668) at moodle.essec.fr.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What is the output of the following code?
def func(s, c):
return [i for i, x in enumerate(s) if c == x]
func('toto', 'o')
Tell what is the output of the following code?
x=10
chr="voitures"
for car in chr:
if car in "aeiouy":
x+=2
else:
x+=1
print(x)
What is the output of the following code?
def f(x, y):
return (x+y, x-y)
x, y = 100, 200
f(y, x)
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!