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

23rd Nov 2018, 6:38 PM
tobi emma Oladele
tobi emma Oladele - avatar
3 Antworten
+ 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?
23rd Nov 2018, 8:13 PM
portpass
+ 1
If you don't want go deep into debugging, you can try my solution: https://code.sololearn.com/cfi88PutxnQw/?ref=app
23rd Nov 2018, 8:16 PM
portpass
0
portpass thanks so much for your in depth reply..now i underatand.
23rd Nov 2018, 11:00 PM
tobi emma Oladele
tobi emma Oladele - avatar