192k views
3 votes
Plssssssssssssss Alexi is writing a program which prompts users to enter their age. Which function should she use?

float()

int()

print()

string()

1 Answer

1 vote

Answer:

int()

Step-by-step explanation:

float() is using decimals, so that can't be it, like float(input( "how much does this cost?"))

print() is used to print something, not a user asking, like print("hello")

string() means like a whole, like string( I am good)

By elimination, int() is correct.

Hope this helps!

User Nutrina
by
5.7k points