+ 1

Str/int/float

Project_budget =input() Here what will the ans be?could you plz explain it to me đŸ€đŸ€

24th Jul 2024, 4:28 PM
Rouza TN
Rouza TN - avatar
2 Answers
+ 2
You’ve made it very difficult to figure out what you need to know. We are not inside your head. What I can tell you is that in Python 3, the input function will return a string. If you want that to be a number, you need to convert it to an integer or a float. In the case of a budget where you are likely to have dollars as whole numbers but also include cents, you probably want a float.
24th Jul 2024, 5:15 PM
Wilbur Jaywright
Wilbur Jaywright - avatar
+ 1
Yes it is impossible to know without the rest of the code or task.
24th Jul 2024, 8:45 PM
Chris Coder
Chris Coder - avatar