0
Finance App Practice
The code is asking for each solution to be completed but I’m having trouble understanding exactly what it’s looking for. Is there anyone that can assist. https://sololearn.com/compiler-playground/c7L8M6D6GigY/?ref=app
3 odpowiedzi
+ 2
Benjamin Aragbaye ,
Don't put any arguments in the parentheses of the call to the input function.
savings = input()
The user (or the automated test case) will provide the input value when the program runs.
+ 1
Let me tell you something. When you use input(), it takes an argument, and this argument its printed before you input anything. Example: input("Whats your age : ")
(Rest of the code)
Output:
Whats your age: (here you white something)
(Rest of the code)
You can use it in sololearn, but it will not work, becouse sololearn playground does only takes input once before displayng the code, what makes that codes as:
while True:
if input() == "hello":
break
Just wont work unless your input is hello.
This codes takes an input from you when you run it, but you do not have to put the input in the code, you put it in the output.
When you run it, it will ask you to put a number and there you write 150, but puting it inside the code wont work.
the rest of the code just multiply it by 0.1(increse it an 10%) and then displays the result
by the way, the input must be an integer, otherwise an error will be displayed
+ 1
Thanks Rain im gonna try what you said. I ended up just skipping to the test cuz I was struggling with how the inout funtion was suppose to work