19.8k views
1 vote
(just basic coding I can't wrap my around :L) Which of the following shows the assignment of a string to a variable? Select 3 options.

answer = input("How old are you? ")

answer = "23"

answer = (23)

answer = '23'

answer = 23
(ps, the coding platform used is python)

User Faten
by
5.2k points

1 Answer

1 vote

The first, second, and fourth are all strings. The double and single quotes helps us identify strings.

User Karl Lopez
by
4.9k points