QUESTION IMAGE
Question
question # 1
multiple select
which of the following shows the assignment of a string to a variable? select 3 options.
answer = (23)
answer = input(\how old are you? \)
answer = 23
answer = \23\
answer = 23
Brief Explanations
In programming, strings are sequences of characters. They are usually denoted by single quotes (' ') or double quotes (" "). The input() function also returns a string. The first option answer=(23) and third option answer = 23 assign integers to the variable answer.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
B. answer = input("How old are you? ")
D. answer = "23"
E. answer = '23'