0

Code Coach - Fruit Bowl

I am having lots of trouble solving the Coad Coach excercises. I am currently on "Fruit Bowl" and can't seem to understand what it wants. Can someone explain the selection below? fruit = int(input()) What does "int(input())" mean? Thanks in advance!

22nd Jan 2020, 4:21 PM
Anthony B.
Anthony B. - avatar
2 Respuestas
+ 9
iPliskin this is explained in the very first python chapters. int() # Transforms a text (string) to an integer input() # Takes an input from a user If you don't remeber these two functions, I suggest you restart the course, or at least review it from the beginning.
22nd Jan 2020, 4:28 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
fruit = int(input()) #fruit bowl code apple=fruit/2 pie=apple/3 if(fruit>=6): print(int(pie)) else: print("0")
11th Aug 2020, 7:06 AM
PRABHU D
PRABHU D - avatar