CodeNewbie Community

Discussion on: python loops

Collapse
randy27 profile image
Randy Gomez
res = ''
for i in range(1, 11):
    res += 'A'

for i  in range(1, 7):
    if i == 6:
        res += 'E'
    else:
       res += 'BCD'

for i in range(1, 16):
    res += 'F'

print(res)
Enter fullscreen mode Exit fullscreen mode
Collapse
dastiles profile image
charles madhuku Author

Thank u