Learning hournal unit 6 PDF

Title Learning hournal unit 6
Course Programming Fundamentals
Institution University of the People
Pages 2
File Size 32.4 KB
File Type PDF
Total Downloads 25
Total Views 141

Summary

hhhhhhhhh...


Description

Learning journal unit 6 Part 1 str = 'Ali Mohammed Faisal Talal Eisa'

x = str.split(" ")

#Deleation x.pop(0) x.remove("Faisal") del x[len(x) -1 ]

# Sorting x.sort()

#insert x.append("Ahmed") x.insert(len(x) - 1, "Jamal") x.extend('Oddy'.split(" "))

#join x = " ".join(x)

#output print(x) Part 2 def letter(charecter): vaol = ['A','I','U','E','O'] flag = False for x in vaol:

if(x == charecter[0]): flag = True return flag

str = ['Odday' , ['Jamal' , 'Ahmed'] , 'Abdulrhman','Mohammed','Faisal','Fahad','Ali']

doublelist = str * 2 sliceslist = str[0:2:4] str += "Faris".split(" ") str2 = filter(letter ,str)

print("the * opritor : " , doublelist) print("List slices : " , sliceslist) print("the += opritor : " , str) print("List Filter : ") for s in str2: print(s)

#you want to add a name and it would spilt the name and add each character as a single element str += 'Ahmed' Part 3 How do you feel about the aspect assessments and feedback you have received from your peers? I believe its great the feedback was really helpful and it made me learn things that I wasn’t really aware of. How do you think your peers feel about the aspect assessments and feedback you provided them? Im wishing that my feedback was helpful for them and encouraged them to improve....


Similar Free PDFs