- What is the output of this code?
>>> spam = "7"
>>> spam = spam + "0"
>>> eggs = int(spam) + 3
>>> print(float(eggs))
73.0
- What is the output of this code?
>>> word = input("Enter a word: ")
# Enter a word: cheese
>>>print(word + ' shop')
cheese shop
- What is the output of this code?
>>> x = 5
>>> y = x + 3
>>> y = int(str(y) + "2")
>>> print(y)
82
- Fill in the blanks to declare a variable, add 5 to it and print its value.
- 변수를 선언한다.
- 5를 추가한 후 그 값을 출력한다.
>>> x = 4
>>> x += 5
>>> print(x)
- What is the output of this code?
>>> x = 3
>>> num = 17
>>> print(num % x)
2