Larisa-HSU / SCU_Python_Learning

homework1
0 stars 0 forks source link

HW03_01 #34

Closed kunia-Mon closed 3 years ago

kunia-Mon commented 3 years ago

9156231莫諼

這次的課程,是透過觀看天下創新的python課程影片來學習,每節課程都簡單易懂,而且每個章節下都還有題目可以複習學到的知識,看完後覺得受益良多。

a=int(input())
b=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
c=0
d=""
for i in range(a+1):
    for j in range(i):
        d=d+b[c%26]
        c=c+1
    print(d)
    d=""