0
Python Query for adding Spaces in a pattern
https://code.sololearn.com/cW28atkqdJ0d/?ref=app How to proceed further?
1 Answer
+ 1
fixed for you
You have loads of problems with your original code... causing lots of errors.
- use proper comments
- use lowercase letters for function names (print, for)
- use regular apostrophes, not the curved windows-styled ones
- use correct indentation inside for loop (convention is 4 whitespaces)
- do NOT use the "list" keyword as variable name
With a lot of list slicing, the code below produces the expected output.
https://code.sololearn.com/cpXMHU5g1Th6/#py