+ 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

4th Aug 2018, 5:01 PM
Hritik Bhat
Hritik Bhat - avatar
11 odpowiedzi
+ 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 +=
4th Aug 2018, 5:44 PM
🌛DT🌜
🌛DT🌜 - avatar
+ 11
#Input: specify 6 integers on separate line 1 1 1 1 1 1 https://code.sololearn.com/cN9QCV6EUHNP/?ref=app
4th Aug 2018, 5:34 PM
🌛DT🌜
🌛DT🌜 - avatar
+ 5
Can you explain what you want with the list https://code.sololearn.com/cs2jjAPRnEHA/?ref=app
4th Aug 2018, 5:15 PM
LONGTIE👔
LONGTIE👔 - avatar
4th Aug 2018, 5:25 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 5
Devanand Bhat its all in line 16 (on 🌛DT🌜 's code) look at that.
4th Aug 2018, 5:40 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 4
so the users input is a string.
4th Aug 2018, 5:44 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 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
4th Aug 2018, 5:23 PM
Hritik Bhat
Hritik Bhat - avatar
+ 2
🌛DT🌜 how did you solve it? why it was giving indented error?
4th Aug 2018, 5:37 PM
Hritik Bhat
Hritik Bhat - avatar
+ 2
LONGTIE👔 but what the 'str' does on line 16?function of str?
4th Aug 2018, 5:43 PM
Hritik Bhat
Hritik Bhat - avatar
+ 2
LONGTIE👔 🌛DT🌜 But i am quite confused about indentation? how can we prevent this type of error?
4th Aug 2018, 5:54 PM
Hritik Bhat
Hritik Bhat - avatar
+ 1
What the exception says?
4th Aug 2018, 5:14 PM
Qwertiony
Qwertiony - avatar