+ 1
Can anyone check what is problem here?
I am new to python so idk about the errors so any who help to find soln would great https://code.sololearn.com/c07CcJL3yLjT/?ref=app
11 Answers
+ 13
first thing was indentation problem :
in Python indentation is very important it's not just for code to look neat... it sets block
2nd -- int(input())
u needed integer input
if else block was wrong
every if else ends with :
also don't provide space between + & =
it should be +=
+ 11
#Input: specify 6 integers on separate line
1
1
1
1
1
1
https://code.sololearn.com/cN9QCV6EUHNP/?ref=app
+ 5
Can you explain what you want with the list
https://code.sololearn.com/cs2jjAPRnEHA/?ref=app
+ 5
+ 5
Devanand Bhat its all in line 16 (on 🌛DT🌜 's code) look at that.
+ 4
so the users input is a string.
+ 2
LONGTIE👔
List goes with variable i
Input:
Rupees 10: 1
Rupees 20: 1
Rupees 50: 1
Rupees 100: 1
Rupees 500: 1
Rupees 2000: 1
Output:
2680
+ 2
🌛DT🌜 how did you solve it?
why it was giving indented error?
+ 2
LONGTIE👔 but what the 'str' does on line 16?function of str?
+ 1
What the exception says?