Finance App Practice | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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

13th Mar 2024, 9:21 PM
Benjamin Aragbaye
3 Respostas
+ 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.
13th Mar 2024, 10:10 PM
Rain
Rain - avatar
+ 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
14th Mar 2024, 4:00 PM
AiVolt
AiVolt - avatar
+ 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
14th Mar 2024, 5:48 PM
Benjamin Aragbaye