96.7k views
3 votes
Which statement reads a user-entered string into variable num_cars?

1) num_cars = "input()"
2) input() = num_cars
3) num_cars = input()

User Mesosteros
by
7.7k points

1 Answer

4 votes

Final answer:

The correct statement to read a user-entered string into a variable is num_cars = input().

Step-by-step explanation:

The correct statement to read a user-entered string into variable num_cars is num_cars = input().

User Sabrina Luo
by
7.6k points