Python <code> Experience Cloud
0 out of 6
print(2**500 == 2.0**500)

What is the output of the code above:

CorrectCorrect
IncorrectIncorrect
a = [3] * 2
b = (3) * 2

print(a, b)

What is the output of the code above:

CorrectCorrect
IncorrectIncorrect
s = {'python', 'copperhead', 'anaconda'}

s.add('cobra')
s.update('viper')

print(s)

What can be the output of the code above:

CorrectCorrect
IncorrectIncorrect
mylist = [[1, 2], [3, 4], [5, 6]]
mylist.append(mylist)

for l in mylist:
  print(l)

What is the output of the code above:

CorrectCorrect
IncorrectIncorrect
a = "".join( map(lambda x: chr( ord(x)+1 ), "cdmhedcmt"[::-1]) ).capitalize()

print(a)

What is the output of the code above:

CorrectCorrect
IncorrectIncorrect
mydict = {1: ([7, 8], [3, 4]), 2: [(9, 8), (4, 3)], ('a', 'b'): 7}

mylist = mydict[1][0]

mylist[1] = 9
print(mydict)

What is the ouput when running this program?

CorrectCorrect
IncorrectIncorrect
Flag

Your score

0 out of 0 correct

Submit your contact details and have a change to win a free Python training.

0%
Vraag 1 van 6
Arrow left Arrow right Python coin
Onderwerpen
Actieve filters: Wis alle filters
Loading...