Complete the code to convert the string '123' to an integer.
num = [1]('123') print(num)
Use int() to convert a string containing digits to an integer.
Complete the code to convert the integer 45 to a float.
num = [1](45) print(num)
Use float() to convert an integer to a floating-point number.
Fix the error in the code to convert the float 3.14 to a string.
text = [1](3.14) print(text)
Use str() to convert any value to a string.
Fill both blanks to create a dictionary with words as keys and their lengths as values, but only for words longer than 3 letters.
lengths = {word: [1] for word in words if len(word) [2] 3}Use len(word) to get the length, and > to filter words longer than 3 letters.
Fill all three blanks to create a dictionary with uppercase keys and values only if the value is greater than 0.
result = {{ [1]: [2] for k, v in data.items() if v [3] 0 }}Use k.upper() for uppercase keys, v for values, and > to filter values greater than zero.