Define a function that takes a list and adds 'pse' to the end of it.
Define a function that takes a list and sorts it.
What does the * operator do a tuple and an integer?
|  It multiplies each element inside the tuple by the integer | ||
|  It adds the integer to each element of the tuple | ||
|  It repeats the entire tuple that many times | ||
|  It creates a set with repeated elements |
Write a function which takes a tuple, t and returns a new tuple which is the repetition of t 4 times.
words = {'po', 'jo', 'ani'}
words.remove('po')
words.discard('pse')
words.pop()
How many elements does words have at the end of execution of the above script?
Write a function which takes a tuple and returns its first 3 elements.
lst = [1, 13, 111, ["a", "b", 3]]
Given the above script:
| How many elements does lst have: | ||
| What is the second element of lst: | ||
| What is type of the second element of lst: | ||
| What is the last element of lst: |
m = {1: 'po', 2: 'jo'}
for b in m:
print(m[b])
Given the above script, what are the two printed values?
Complete execution flow of the following program
fruit = "kiwi" for letter in fruit: print(letter)
Complete execution flow of the following program
def lower(s): return s.lower() s1, s2 = 'python', 'Python' print(lower(s1)) s2 = lower(s2) print(s2)