8 Respuestas
+ 1
https://code.sololearn.com/cHqC1aaA9bmN/?ref=app
Look how I did it
+ 2
Try yourself
YAKUP KARAKAŞ see below code for M.
result_str="";
for row in range(0,7):
for column in range(0,7):
if (column == 1 or column == 5 or (row == 2 and (column == 2 or column == 4)) or (row == 3 and column == 3)):
result_str=result_str+"* "
else:
result_str=result_str+" "
result_str=result_str+"\n"
print(result_str);
+ 1
乂丹ⓨㄩک廾乂〖թг๏〗
thanks :) let me try this one, it is looking so cool. great job
+ 1
Såñtösh Màràvi
thanks, It is great but I am trying to understand how does your ‘if’ block works?
+ 1
♤♢☞ 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 ☜♢♤
thank you so much. Såñtösh Màràvi ‘s cose is good too. however I still didn’t understand how the if block works.
0
Såñtösh Màràvi
thanks for your advice. do you have something else to say?
0
♤♢☞ 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 ☜♢♤
this is amazing :) 👍 thank you so much
- 1
Hi good night everyone my friend how are you all in tonight