+ 1
Python code (numbers in a pattern){solved}
Please help me to get an output like - 1 1 12 21 12321 if my input number is 3. Tried many times đ Please help
4 Answers
+ 2
Run two for loops ,calculate initial spaces and then insert it between two loops and decrement the initial_spaces by 2 at the end
Edit: if the pattern input is double digit number then you have to recalculate spaces
https://code.sololearn.com/csq0qfum888q/?ref=app
+ 2
Post your try...
+ 2
Thanks a lot Abhay đ
+ 1
đ