Define a function that takes one list and a value, t and v, and changes its last element to v.
Write a function that takes one dictionary and returns True if '3' appears in it as value. It returns False otherwise.
What type does the expression ('x') evaluate to?
|  tuple | ||
|  list | ||
|  str | ||
|  error |
Write a function that takes two strings, s1, and s2, and returns True if s1 is smaller than (comes before) s2.
Define a function that takes a string and an integer, word and n, and returns character of word with index n + 1.
Write a function which takes a set, s, and another argument, a, and it deletes
a from s. If a is not is s it should raise KeyError. Function
should return None
Define a function that takes one list as argument and returns its third to last element (the third element from the end).
def is_char(word, ch, i):
return word[i] == ch
Given the above script, what are the results of the following expressions:
| is_char("llukar", "u", 3): | ||
| is_char("xerxe", "x", 0): | ||
| is_char("carralluke", "c", 1): |
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)
Complete execution flow of the following program
>>>