//for i in range(5):
for j in range(i+1):
print('*',end='')
print("")
for i in range(5):
for j in range(5-i):
print('*',end='')
print("")
When I do this, it becomes double cloth, so the shape I want doesn't come out.But there's for
//for i in range(5):
for j in range(i+1):
print('*',end='')
print("")
for i in range(5):
for j in range(5-i):
print('*',end='')
print("")
I don't know why, but the error Unindent does not match any outer indication level appears.Is there any way to start a new for statement?How can I execute the for statement above first and then execute the for statement below separately?
python for error
I tried to run it with your second code, but the error you mentioned didn't occur. Please check if there are any typos.
for i in range(5):
for j in range(i+1):
print('*', end='')
print("")
for i in range(5):
for j in range(5-i):
print('*', end='')
print("")
If there is an error while checking the result with the 'Execute Code' button on the hash code site, When you write code, check if you wrote python3 in the programming language.
Try running code with Faicham or another interpreter and it will work well.
567 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
577 PHP ssh2_scp_send fails to send files as intended
607 Uncaught (inpromise) Error on Electron: An object could not be cloned
572 Understanding How to Configure Google API Key
567 Who developed the "avformat-59.dll" that comes with FFmpeg?
© 2024 OneMinuteCode. All rights reserved.