+ 6

Need help in python! :(

The prblm i am facing is here, in output it's showing expected atleast 1 argument got 2. The code is here: print(input("Enter your name:")) print(input("Enter account number:")) um_um = input("If you want to deposit an amount, click 0" , "if you want to with draw an amount, click 1") if um_um == 0: print(input("Amount to be deposited:")) Help meh!!! :(

4th Apr 2021, 1:08 PM
Rosy
Rosy - avatar
2 Answers
+ 1
Use string concatenation instead of separating by a comma. Separating with comma only work when you use it in "print" function. In your code in 3rd line """ um_um = input("If you want to deposit an amount, click 0" + "if you want to with draw an amount, click 1") """ input is a built-in function which takes only one argument which is prompt text. But print can takes as many argument seperated by a comma.
4th Apr 2021, 3:29 PM
AKSHAY🇼🇳
AKSHAY🇼🇳 - avatar
+ 8
Their are two strings at 3rd line. Make it one
4th Apr 2021, 1:18 PM
Scarlet Witch
Scarlet Witch - avatar