0
Hello pls I'm having with a code.I'm trying to write letter A but it's nt printing it out.the A is smh deformed.pls help me!!
Printing letter A with * using python https://code.sololearn.com/cnRJONMrAyDN/?ref=app
3 Answers
+ 1
Hello
1) In the second loop bouth the 'print' statements are executed when i == num//2. This cause to deformation of the output. Place the second 'print' in the 'else' section to resolve this issue
2) Keep in mind the fact that 'print()' separates the output of its arguments with whitespaces. May be you will find it usefull to set (sep = "") to avoid extra whitespaces in the output.
3) While debugging your code, replace the ' ' (spaces) with the other symbol, so you can see the output and easily find what wrong with it
4) The first loop runs 0 or 1 times. Why don't you use 'if' statement instead?
+ 1
If you don't want go deep into debugging, you can try my solution:
https://code.sololearn.com/cfi88PutxnQw/?ref=app
0
portpass thanks so much for your in depth reply..now i underatand.