Untitled

Anonymous
plain_text
07/08/2024 11:39 AM
508 B
27
Indexable
#homework solution 
student = 80
if student >50 :
    print('Success')
else :
    print('Unsuccess')    

# lists 
names = ['asser','martin','nour']
print(names[1])


#print all list names

names = ['ahmed','mohmmed','omar','ehab']
for i in range(4):
 print(names[i])


#HOMEWORK - CREATE A LIST THAT CONTAINS 6 NAMES AND PRINT ONLY 3 NAMES USING INDEX (INDECES)
Editor is loading...
Leave a Comment