+ 1

Could someone clear some confusion, please

For this we will the Range lesson (Python) a=int(input()) b=int(input()) Then you add your code to get output list=list(range(a, b)) print(list) It did not matter how I put different code in to get the same output. It kept saying error 5 line print(list) (for above) took me 30 minutes to get it's the xxx numbers of space print list a=int(input()) b=int(input()) list=list(range(a, b)) ---->print(list) Error a=int(input()) b=int(input()) list=list(range(a, b)) print(list) Right The last 3 to 4 test has the same error where did it change, xxx space for print to no space for print? What makes the difference? It was watching your space to no space for print. (Hope this make sense) Thank you

6th Mar 2022, 8:15 PM
Alisha Richardson
2 Answers
+ 1
Learn about indentation in python. Python uses no.of spaces upfront to make same block of code. First 2 produce error but 3rd works. edit: About indentation, These may help you.. https://code.sololearn.com/cT5BRIbkia21/?ref=app https://www.sololearn.com/discuss/1504090/?ref=app https://www.sololearn.com/discuss/29358/?ref=app
6th Mar 2022, 8:29 PM
Jayakrishna 🇼🇳
+ 1
Thank you
7th Mar 2022, 1:17 AM
Alisha Richardson