Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question # 1 multiple select which of the following shows the assignmen…

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

Explanation:

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.

Answer:

B. answer = input("How old are you? ")
D. answer = "23"
E. answer = '23'