160k views
4 votes
Question 1) So I am just learning how to code, what is the difference between:

cookies=float(input('enter number of cookies: '))

#and

name= input('enter your name : ')



Question 2) what is the difference when a (') is spaces out after the (:) and if it is not spaced out?

User TomCaps
by
8.7k points

1 Answer

3 votes

Answer: In the first line of code the user is asked for his name. when executed the output will be a string "name of the user". The second line of code will return a float point number.

Step-by-step explanation:

User WhiteFluffy
by
8.6k points