Discuss / Python / 11

classmates = ['Michael', 'Bob', 'Tracy']

classmates.insert(1,'Jack')

n=len(classmates)

m=0

while m<n:

    if m>=n:

        break

    print('hello,',classmates[m],'!')

    m=m+1

print()


  • 1

Reply