Discuss / Python / 作业打卡

作业打卡

Topic source
L = ['Bart', 'Lisa', 'Adam']
for name in L:
    print('Hello, ' + name + '!')

length = len(L);
n = 0;
while n < length:
    print('Hello, %s!' %L[n])
    n = n + 1

  • 1

Reply