Write a function that takes two strings, s1, and s2, and returns True if s1 appears in s2 as substring.
Create a dictionary, mapping, with length 4, were keys are strings, and values are floats.
Create a function which takes a list as argument and returns a tuple
containing all elements of the list. Example:
>>> create_tuple([2, 3, 4, 'a'])
(2, 3, 4, 'a')
Write a function that takes a dictionary and returns its length
What happens when you try to change an element of a tuple?
|  The tuple updates successfully | ||
|  You get a TypeError | ||
|  It changes the last element instead | ||
|  The program automatically converts it to a list |
What type does the expression ('x') evaluate to?
|  tuple | ||
|  list | ||
|  str | ||
|  error |
words = {"the": 301, "why": 200, "ok": 3}
Given the above script?
| What is the the value of words: | ||
| What is type of words: | ||
| How many elements does words have: | ||
| What is the value mapped to "why": | ||
| What is the key the value 3 is mapped to: |
words = {"pse": "why", "ani": "ok", "ani": "okay"}
words["no"] = "jo"
words["ani"] = "alright"
words["po"] = "yes"
Given the above script?
| What is the final value of words: | ||
| What is the final number of elements of words: | ||
| What is the final value of "ani": |
Complete execution flow of the following program
def in_both(word1, word2): for letter in word1: if letter in word2: print(letter)
Complete execution flow of the following program
>>>