constWORLDant

python 익숙해지기 본문

0x01 공부 스케줄

python 익숙해지기

data type ConS_tanT 2017.11.01 09:52

# star exercise

# object : friendly Python

i=0

j=0

for i in range (0,4): #3 line

for j in range (1,2):

print ("*" * (i+1)),

print ' '


print 

for i in range (5,-1,-1):

for j in range (1,2):

print ("*" * (i-1)),

print ' '


print

for line in range (0,5): # 0~5

for i in range (4-line,0,-1):

print " ",

for j in range (0,line):

print "*",

print " "


print

blank =0

star = 0




for c in range(5,0,-1):

print("{:>5}".format("*" * c))



'0x01 공부 스케줄' 카테고리의 다른 글

python 익숙해지기  (1) 2017.11.01
1 Comments
댓글쓰기 폼