Untitled

mail@pastecode.io avatar
unknown
plain_text
8 days ago
381 B
7
Indexable
Never
#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)
Leave a Comment