<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Forward School DS Day 2 Submissions by Daren Tan</title>
      <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw</link>
      <description>October Cohort</description>
      <language>en-us</language>
      <pubDate>2020-10-18 01:12:03 UTC</pubDate>
      <lastBuildDate>2020-10-18 07:45:54 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>CheeBeng_exercise1</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118114</link>
         <description><![CDATA[<div>def checksum(num1,num2):<br>    "return sum of two integer. however, if the sum between 15 and 20 it will return 20"<br>    total  = num1 + num2<br>    if total&gt;=15 and total&lt;=20:<br>        return 20<br>    else:<br>        return total<br>    <br>print(checksum(9,9))<br>print(checksum(20,-2))<br>print(checksum(-2,50))<br><br>exe 2<br>str1 = "Emma is a data scientist who knows Python. Emma works at google."<br>def lastposition(look):<br>    "get last position of substring Emma"<br>    return str1.find(look)+1<br><br>print(lastposition('.'))<br><br><br>exe 3<br>def showeven(start,end):<br>    "print even number"<br>    for i in range(start,end):<br>        if i%2==0:<br>            print(i)<br>        <br>showeven(0,99)<br><br><br>exe 3.1<br># Nested Lists Example, let's use population (millions). <br>countries = [['China','Beijing', 1386],<br>             ['India','Delhi',1339],<br>             ['United States','Washington DC', 325],<br>             ['Malaysia','Kuala Lumpur',31]]<br><br>def print_size(country,country1):<br>    print(countries[country][2])<br>    print(countries[country1][2])<br><br>#print(countries[0][2])<br>print_size("China","Malaysia")<br><br>exe 3.2<br>def total_all(list):<br>    sum = 0<br>    for item in list:<br>        sum = sum + item<br>    return sum<br><br>all_list = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]<br>print(total_all(all_list))<br><br>exe 3.3<br>def checkFound(num,list):<br>    "check if number appears on a list"<br>    result = "Not Found"<br>    for s in list:<br>        if s == num:<br>            result = "Found !"<br>    return result<br><br>checkFound(130,list(range(100)))<br><br>exe 3.4<br>a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]<br>b = [num*num*num for num in a if num%2==1]<br><br>print(b)<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:15:25 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118114</guid>
      </item>
      <item>
         <title>Kavien_exercise1</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118152</link>
         <description><![CDATA[<div>def sum(x,y):<br>    'Sum total of 2 numbers if the values is between 15 and 20 hence return 20 else return value'<br>    total = x + y <br>    if total &gt;= 15 and total &lt;= 20:<br>        total = 20 <br>    <br>    return total <br><br>sum(9,9)<br>sum (20,-2)<br>sum (-2,-50)<br><br><br>exe 2<br>#find the index of emma<br>strpass = "Emma is a data scientist who knows Python. Emma works at google."<br><br>def FindName1 (str1):<br>    'Find the second name'<br>    endS =str1.find(".")<br>    print (endS+1 )<br>FindName1(str2)<br><br><br>exe 3<br>i = 0<br>while i &lt;= 99: <br>    indc = i%2</div><pre>    
    if indc == 0:</pre><div>       print(i) <br>    <br>    i = i + 1 <br><br>exe 3.1<br>countries = [['China','Beijing', 1386],<br>             ['India','Delhi',1339],<br>             ['United States','Washington DC', 325],<br>             ['Malaysia','Kuala Lumpur',31]]<br><br><br>mas = countries[3][2]<br><br>for count in countries :<br>    if count[0] != "Malaysia":<br>        ans = count[2]/mas<br>        print(count[0] + " Population is bigger than Malaysia by %.2f" %ans )<br><br>exe 3.2 <br>def sumList(list):<br>    'Total up the values of the list'<br>    Totalsum = 0 <br>    for element in list:<br>        Totalsum = Totalsum + element<br><br>    return Totalsum<br><br><br>list = [1, 4, 9, 16, 25,55,6,100,200,1000,23]<br>print(sumList(list))<br><br><br>3.3<br>def search (findVal, List1):<br>    status =""<br>    for a in List1:<br>        if findVal == a:<br>            status = "Found"<br>        elif status !="Found":<br>            status = "Not Found"<br>            <br>    return status<br><br><br>        <br>print(search(10, list(range(100))))<br>print(search(250, list(range(100))))<br><br>Remove Even Numbers<br>num = [7, 8, 120, 25, 44, 20, 27]<br>def remove_even(x):<br>    ## write your code here ##<br>    odd=[]<br>    for a in x:<br>       # print(a) <br>        indc = a%2<br>        if indc == 1 : <br>             odd.append(a)<br>    return odd<br>        <br>        <br><br>nl = remove_even(num)<br>print(nl)     # answer should be [7, 25, 27]<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:15:31 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118152</guid>
      </item>
      <item>
         <title>Jordan</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118174</link>
         <description><![CDATA[<div>def s(num1,num2):<br>    "function: add 2 numbers and display 20 if values between 15 - 20"<br>    ans=num1+num2<br>    if (ans &gt;=15) and (ans &lt;= 20):<br>        print("20")<br>    else:<br>        print(ans)<br><br>Exercise 3<br>num=int(input("Enter number"))<br>for n in range(num):<br>    if n % 2 ==0:<br>        print(n)<br><br>remove even num<br>num = [7, 8, 120, 25, 44, 20, 27]<br>def remove_even(num):<br>    for nl in num:<br>        if nl%2 ==1: <br>            print(nl)<br><br>list comprehension<br># complete this line<br>b = [alpha**3 for alpha in a if alpha%2==1]<br>print(b)</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:15:35 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118174</guid>
      </item>
      <item>
         <title>Chan Yong</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118760</link>
         <description><![CDATA[<div>str="Emma is data scientist who knows python. Emma whoks at google."<br><br>def last_position(Emma):<br> "return sum of two integer. however, if the sum between 15 and 20 it will return 20" <br>    return str.find(" Emma")+1<br><br>print(last_position("Emma"))<br><br><strong>Quick Exercise 3.1</strong><br>countries = [['China','Beijing', 1386],<br>             ['India','Delhi',1339],<br>             ['United States','Washington DC', 325],<br>             ['Malaysia','Kuala Lumpur',31]]<br><br>for s in range(3):<br>    num = countries[s][2]/countries[3][2]<br>    print(countries[s][0],num)<br>   <br><br>def sum_up(list1):<br>    "sum up in list"<br>    sum = 0<br>    for n in list1:<br>        sum = sum +n <br>    return sum<br><br>print(sum_up([1,2,3,4,5]))<br><br><br>num = [7, 8, 120, 25, 44, 20, 27]<br>def remove_even(x):<br>    "Remove even number in list"<br>    for i in num:<br>        if i%2 != 0:<br>            ans=i <br>    return ans<br>print(remove_even(num))<br><br><br>a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]<br><br>b=[outp*outp*outp for outp in a if outp%2 ==1]<br>print(b)<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:17:07 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118760</guid>
      </item>
      <item>
         <title>Suying_Ex1</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118950</link>
         <description><![CDATA[<div>print("Please key in 2 integers.")<br>int1=int(input("Integer1:"))<br>int2=int(input("Integer2:"))<br>sum=int1+int2<br>if sum&gt;=15 and sum&lt;=20:<br>    sum=20<br>print("Sum is %d" % sum)</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:17:37 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838118950</guid>
      </item>
      <item>
         <title>Micha</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838119417</link>
         <description><![CDATA[<div>num=[7, 8, 120, 25, 44, 20, 27]<br><br>remove_even=[n for n in num if n%2!=0]<br>print(list(remove_even))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:18:20 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838119417</guid>
      </item>
      <item>
         <title>Nurul</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838119496</link>
         <description><![CDATA[<div>def result(a,b):<br>    <br>    s = a + b<br>    if (s &gt;= 15) and (s &lt;=20):<br>        return 20<br>    else:<br>        return s<br>    <br>    print(result(9,9))<br>    print(result(20,2))<br>    print(result(-2,50))<br>    print(result(10,11))<br><br><strong>--Exercise 3--</strong><br>for i in range(0,99):<br>    if i % 2 == 0:    <br>        print(i) <br><br><strong>--Exercise3.1--<br></strong>for i in range(3):<br>    population = countries[i][2]/countries[3][2]<br>    <br>    print(countries[i][0],"population is %.2f times bigger than Malaysia"%population)<br><br><strong>----<br><br></strong>def sum_list(lists):<br>    sum = 0<br>    for s in lists:<br>        sum = sum + s<br>    return sum    <br><br>lists = [1,2,3,4,7,8,9,10]<br>print(sum_list(lists))<br><br><strong>--Exercise 3.4--</strong><br>a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]<br>b = [odd**3 for odd in a if odd%2==1]<br>print(b)</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:18:34 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838119496</guid>
      </item>
      <item>
         <title>Emerson_Excercise1</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838119865</link>
         <description><![CDATA[<div>def sum(a, b):<br>	"Return the sum of two integers but if the sum is between 15 and 20 return 20"<br>	total = a + b<br>	if (total &gt;= 15) and (total &lt;= 20):<br>		return 20<br>	return total<br><br>print(sum(9, 9))<br>print(sum(20, -2))<br>print(sum(-2, 50))<br><br><strong>Excercise 2<br></strong>def last_substring(sentence):<br>	return sentence.rfind('Emma')<br><br>print(last_substring("Emma is a datascientist who knows Python. Emma works at google."))<br><br><strong>Excercise 3<br></strong>for num in range(1, 99):<br>	if num % 2 == 0:<br>		print(num)<br><br><strong>Excercise 3.1<br></strong>for i in range(len(countries)-1):<br>	malaysia = countries[-1]<br>	print(countries[i][0] + " is " + str(countries[i][2] - malaysia[-1]))<br><br><strong>Excercise 3.2</strong><br>nums = [34, 53, 252, 62, 64, 13, 75, 75]<br><br>def sum(array):<br>	total = 0<br>	for num in array:<br>		total += num<br>	return total<br><br>print(sum(nums))<br><br>def find(num, numlist):<br>	if num in numlist:<br>		return "Found"<br>	return "Not Found"<br><br>print(find(10, range(5)))<br><br><strong>Remove even Numbers</strong><br>num = [7, 8, 120, 25, 44, 20, 27]<br>def remove_even(x):<br>	for n in x[:]:<br>		if n % 2 == 0:<br>			x.remove(n)<br>	return x<br>print(remove_even(num))<br><br><strong>List Comprehension<br>b = [n**3 for n in a if n % 2 != 0]</strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:19:27 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838119865</guid>
      </item>
      <item>
         <title>Ping</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838121464</link>
         <description><![CDATA[<div><br>def verbing(s):<br>    if (len(s) &gt;= 3 and s.endswith("ing")):<br>        return s + "ly"<br>    else:<br>        return s + "ing"<br><br><br><br><br>a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]<br>b=a<br><br>b=[num**3 for num in a if num != num % 2==1 ]<br><br>print(b)<br><br><br><br><br>#Exercise 3<br>for evnumber in range(0,99):<br>    if(evnumber % 2 == 0):<br>        print(evnumber)<br><br><br>#Excercise 2<br>str1="Emma is a data scientist who know Python. Emma works at google."<br>wstr1=str1.find("Emma")<br>wstr2=str1.find(". Emma")<br>print (wstr1)<br>print (wstr2)<br><br><br>#Exercise 1<br>def sum(a,b):<br>    "sum: is to total up two integer given. However, if sum is between 15 to 20, it will return 20."<br>    total=a+b<br>    if total &gt;= 15 and total &lt;= 20:<br>        return 20<br>    else:<br>        return total<br>    </div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:23:32 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838121464</guid>
      </item>
      <item>
         <title>Suying_Ex2</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838124239</link>
         <description><![CDATA[<div>str1="Emma is a data scientist who knows Python. \<br>Emma works at google."<br>def emma():<br>    print(str1.index(". E")+1)<br>    <br>emma()</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:30:09 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838124239</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838130302</link>
         <description><![CDATA[def sum (a,b):
    "Function: returns results of summation of two integers."
    sum = a + b
    if sum &gt;= 15 and sum &lt;= 20:
        print("The sum of the the two integers is between 15 to 20.")
        return 20
    elif sum &lt; 15:
        print("The sum of the two integers is below 15.")
    else:
        print("The sum of the two integers is above 20.") 

sum(9,9)]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 01:43:51 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838130302</guid>
      </item>
      <item>
         <title>Suying_Ex3</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838138730</link>
         <description><![CDATA[<div>i=0<br>while i&lt;=99:<br>    if i%2==0:<br>        print(i, end=" ")<br>    i=i+1</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 02:01:54 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838138730</guid>
      </item>
      <item>
         <title>Suying_D2E1</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838154827</link>
         <description><![CDATA[<div>countries = [['China','Beijing', 1386],<br>             ['India','Delhi',1339],<br>             ['United States','Washington DC', 325],<br>             ['Malaysia','Kuala Lumpur',31]]<br>beijing=(int(countries[0][2])/countries[3][2])<br>delhi=(int(countries[1][2])/countries[3][2])<br>dc=(int(countries[2][2])/countries[3][2])<br><br>print("China's population is %.2f times bigger than Malaysia" %beijing)<br>print("India's population is %.2f times bigger than Malaysia" %delhi)<br>print("United States' population is %.2f times bigger than Malaysia" %dc)<br><br>def sum_list(listt):<br>    sum=0<br>    for i in listt:<br>        sum += i<br>    return sum<br><br>listt=[1,2,3]<br>print(sum_list(listt))<br><br><strong>COMPREHENSION</strong><br>a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]<br>b = [num**3 for num in a if num%2!=0]<br>print(b)</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 02:36:48 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838154827</guid>
      </item>
      <item>
         <title>Emerson_Donut Excercise</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838352979</link>
         <description><![CDATA[<div>def donuts(n):<br>	if(n &gt;= 10):<br>		return "Number of donuts: many"<br>	return "Number of donuts " + str(n)<br><br>print(donuts(5))<br>print(donuts(9))<br>print(donuts(10))<br>print(donuts(99))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:13:45 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838352979</guid>
      </item>
      <item>
         <title>CheeBeng</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838353688</link>
         <description><![CDATA[<div><strong>Donuts</strong><br>def donuts(x):<br>    "return number of donuts, however if more than equal 10 will return many"<br>    if x&gt;=10:<br>        print("Number of donuts: many")<br>    else:<br>        print("Number of donuts: ", x)<br>        <br>donuts(4)<br>donuts(9)<br>donuts(10)<br>donuts(99)<br><br><strong>Both Ends</strong><br>def both_ends(x):<br>    "return first 2 and the last 2 chars,however return empty if less than 2 chars"<br>    if len(x)&lt;2:<br>        return ''<br>    else:<br>        return x[:2] + x[-2:]<br><br>print(both_ends('spring'))<br>print(both_ends('Hello'))<br>print(both_ends('a'))<br>print(both_ends('xyz'))<br><br><strong>Fix Start</strong><br>def fix_start(s):<br>    "get first char and change to * for next occurence but not the first char"<br>    firstchar = s[0] #get first char<br>    return s[0] + s[1:].replace(firstchar,"*") #join back first char<br>    <br>print(fix_start('babble'))<br>print(fix_start('aardvark'))<br>print(fix_start('google'))<br>print(fix_start('donut'))<br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:14:15 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838353688</guid>
      </item>
      <item>
         <title>Jordan</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838357227</link>
         <description><![CDATA[<div>Exercise: donut<br>def dou(donuts):<br>    "function: display num of donuts. if &gt;5, display many, else display num of donuts"<br>    if donuts &lt;= 5:<br>        print("Number of donuts: ", donuts)<br>    else:<br>        print("Number of donuts: many")<br><br>mixup<br>def mixup(s,s1):<br>    firstw=s[:2]<br>    secondw=s1[:2]<br>    text=secondw + s[2:] + " " + firstw + s1[2:]<br>    return text<br><br>verbing<br>def verbing(verb):<br>    if (len(verb))&gt;=3:<br>        if 'ing' in verb:<br>            return verb +'ly'<br>        else:<br>            return verb +'ing'<br>    else:<br>        return verb<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:16:51 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838357227</guid>
      </item>
      <item>
         <title>Kavien_Donut Exe</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838359509</link>
         <description><![CDATA[<div>def donuts(x):<br>    'To display the number of donuts'<br>    message = "Number of donuts: "<br>    if x &gt;= 10:<br>        message = message + "many" <br>    else:<br>        message = message + str(x)<br>        <br>    return message <br>        <br>print(donuts(4))<br>print(donuts(9))<br>print(donuts(10))<br>print(donuts(99))<br>    </div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:18:37 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838359509</guid>
      </item>
      <item>
         <title>Nurul </title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838368104</link>
         <description><![CDATA[<div>Donut<br>def donuts(num):<br>    if num &lt; 10:<br>        print("Number of donuts:",num) <br>    else :<br>        print("Number of donuts:many") <br>        <br>donuts(4)<br>donuts(9)<br>donuts(10)<br>donuts(99)</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:25:17 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838368104</guid>
      </item>
      <item>
         <title>Chan Yong not_bad</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838368916</link>
         <description><![CDATA[<div>def not_bad(s):<br>    if s.find("not")&gt;1and s.find("bad")&gt;1:<br>        s=s[:s.find("not")]+"good"<br>    return s</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:25:59 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838368916</guid>
      </item>
      <item>
         <title>Micha</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838369912</link>
         <description><![CDATA[<div>#Exercise 1: DONUT<br><br>donut = [4,9,10,99]<br><br>donut1 = [num for num in donut if num &lt;10]<br>donut2 = ['many' for num in donut if num &gt;=10]<br><br>all = donut1 + donut2<br><br>print(list(all))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:26:42 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838369912</guid>
      </item>
      <item>
         <title>Emerson Both_Ends</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838379753</link>
         <description><![CDATA[<div>def both_ends(s):<br>	if len(s) &lt; 2:<br>		return ''<br>	return s[0:2] + s[-2:]<br>print(both_ends("spring"))<br>print(both_ends("Hello"))<br>print(both_ends("a"))<br>print(both_ends("xyyz"))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:32:51 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838379753</guid>
      </item>
      <item>
         <title>Suying Ex2</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838381822</link>
         <description><![CDATA[<div>def both_ends(s):<br>    if len(s)&lt;2:<br>        print("")<br>    else:<br>        print(s[:2]+s[-2:]) <br>    <br>both_ends("spring")<br>both_ends("Hello")<br>both_ends('a')<br>both_ends('xyz')</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:34:29 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838381822</guid>
      </item>
      <item>
         <title>Kavien_BothEnds</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838382030</link>
         <description><![CDATA[<div>def both_ends(s):<br><br>    if len(s) &lt;2:<br>        message = ""<br>    else:<br>        message = s[0:2] + s[-2:]<br>        <br>    return message <br><br>print(both_ends('spring'))<br>print(both_ends('Hello'))<br>print(both_ends('a'))<br>print(both_ends('xyz'))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:34:39 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838382030</guid>
      </item>
      <item>
         <title>Kavien Fix Start </title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838400271</link>
         <description><![CDATA[<div>def fix_start(s):<br>    'replace * that is same char to the start of the word'<br>    get_string = s[0:1]<br>    replace_stirng = "*"<br>    return s[0:1] + s[1:].replace(get_string, replace_stirng)<br><br>    <br><br>print(fix_start("babble"))<br>print(fix_start('aardvark'))<br>print(fix_start('google'))<br>print(fix_start('donut'))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:48:21 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838400271</guid>
      </item>
      <item>
         <title>Emerson FIX_START</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838400318</link>
         <description><![CDATA[<div>def fix_start(s):<br>	first_letter = s[0]<br>	return first_letter + s[1:].replace(first_letter, '*')<br><br>print(fix_start("babble"))<br>print(fix_start('aardvark'))<br>print(fix_start('google'))<br>print(fix_start('donut'))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 06:48:23 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838400318</guid>
      </item>
      <item>
         <title>CheeBeng Mix Up</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838419069</link>
         <description><![CDATA[<div>def mix_up(char1,char2):<br>    "mix and and swap the first 2 chars of each string"<br>    return char2[0:2] + char1[2:] + ' ' + char1[0:2] + char2[2:]<br>    <br>    <br>print(mix_up('mix', 'pod'))<br>print(mix_up('dog', 'dinner'))<br>print(mix_up('gnash', 'sport'))<br>print(mix_up('pezzy', 'firm'))<br><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:01:55 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838419069</guid>
      </item>
      <item>
         <title>Kavien Mix Up </title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838422992</link>
         <description><![CDATA[<div>def mix_up(a,b):<br>    'mix up the first 2 characters for 2 string'<br>    getAFirst2 = a[0:2]<br>    getBFirst2 = b[0:2]<br>    <br>    answer = getBFirst2 + a[2:] + " " + getAFirst2 + b[2:]<br>    return answer<br><br>print(mix_up('mix', 'pod'))<br>print(mix_up('dog', 'dinner'))<br>print(mix_up('gnash', 'sport'))<br>print(mix_up('pezzy', 'firm'))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:04:55 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838422992</guid>
      </item>
      <item>
         <title>Emerson MIX_UP</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838424110</link>
         <description><![CDATA[<div>def mix_up(a, b):<br>	first_two = a[0:2]<br>	second_two = b[0:2]<br><br>	return second_two+a[2:] + " " + first_two+b[2:]<br><br><br>print(mix_up('mix', 'pod'))<br>print(mix_up('dog', 'dinner'))<br>print(mix_up('gnash', 'sport'))<br>print(mix_up('pezzy', 'firm'))<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:05:48 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838424110</guid>
      </item>
      <item>
         <title>Suying Mix Up</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838425659</link>
         <description><![CDATA[<div>def mix_up(a,b):<br>    print(b[:2]+a[2:], a[:2]+b[2:])<br><br>mix_up('mix','pod')<br>mix_up('dog','dinner')<br>mix_up('gnash','sport')<br>mix_up('pezzy','firm')</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:07:03 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838425659</guid>
      </item>
      <item>
         <title>Nurul_MixUp</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838436890</link>
         <description><![CDATA[<div>def mix_up(m,n):<br>    x = n[:2]+m[2:]+" "+m[:2]+n[2:]<br>    return x<br><br>print(mix_up('mix','pod'))<br>print(mix_up('dog','dinner'))<br>print(mix_up('gnash','sport'))<br>print(mix_up('pezzy','firm'))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:15:37 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838436890</guid>
      </item>
      <item>
         <title>CheeBeng Verbing</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838442003</link>
         <description><![CDATA[<div>def verbing(s):<br>    "add 'ing' if string &gt;=3,if 'ing', add 'ly' instead"<br>    if len(s)&gt;=3:<br>        if "ing" in s[-3:]:<br>            s = s + 'ly'<br>        else:<br>            s = s + 'ing'<br>    return s<br>        <br>print(verbing('hail'))<br>print(verbing('swiming'))<br>print(verbing('do'))<br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:19:31 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838442003</guid>
      </item>
      <item>
         <title>Suying Verbing</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838443989</link>
         <description><![CDATA[<div>def verbing(s):<br>    if len(s)&gt;=3:<br>        if s[-3:]=="ing":<br>            return s+"ly"<br>        else:<br>            return s+"ing"<br>        return s<br>    <br>print(verbing("hail"))<br>print(verbing("swimming"))<br>print(verbing("do"))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:21:02 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838443989</guid>
      </item>
      <item>
         <title>Emerson Verbing</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838449842</link>
         <description><![CDATA[<div>def verbing(s):<br>	if(len(s) &gt;= 3):<br>		if(s[-3:] == 'ing'):<br>			return s+'ly'<br>		return s+"ing"<br>	return s<br><br>print(verbing('hail'))<br>print(verbing('swimming'))<br>print(verbing('do'))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:25:25 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838449842</guid>
      </item>
      <item>
         <title>Kavien Verbing</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838450445</link>
         <description><![CDATA[<div>def verbing(word):<br>    sentence =""<br>    if len(word)&gt;=3:<br>        if word[-3:] == "ing":<br>            sentence = word + "ly"<br>        else:<br>             sentence = word + "ing"<br>    else:<br>         sentence = word<br><br>    return sentence<br><br>print(verbing('hail'))<br>print(verbing('swiming'))<br>print(verbing('do'))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:25:51 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838450445</guid>
      </item>
      <item>
         <title>CheeBeng  Not Bad</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838473888</link>
         <description><![CDATA[<div>def not_bad(s):<br>    <br>    not_index = 0<br>    not_index = s.index("not")<br>    if "bad" in s[not_index:]:<br>        return s[0:not_index] + " good"<br>    else:<br>        return s<br>    <br>print(not_bad('This movie is not so bad'))<br>print(not_bad('This dinner is not that bad!'))<br>print(not_bad('This tea is not hot'))<br>print(not_bad("It's bad yet not"))<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:42:10 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838473888</guid>
      </item>
      <item>
         <title>Kavien Not bad</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838474005</link>
         <description><![CDATA[<div>def not_bad(word):<br>    not_index = word.find("not")<br>    bad_index = word.find("bad")<br>    <br>    if not_index &lt; bad_index :<br>        return word[0:not_index] + word[not_index:bad_index+3].replace(word[not_index:bad_index+3],"good") + word[bad_index+3:]<br>    else:<br>        return word<br><br><br><br>print (not_bad('This movie is not so bad'))<br>print (not_bad('This dinner is not that bad!'))<br>print (not_bad('This tea is not hot'))    <br>print (not_bad("It's bad yet not"))       </div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:42:15 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838474005</guid>
      </item>
      <item>
         <title>Emerson Not bad</title>
         <author></author>
         <link>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838474788</link>
         <description><![CDATA[<div>def not_bad(s):<br>	bad = s.find('bad')<br>	nt = s.find('not')<br>	if(bad &gt; nt): <br>		new_string = s.replace('not', '').replace('bad', 'good')<br>		return new_string<br>	return s<br>print(not_bad('This movie is not so bad'))<br>print(not_bad('This dinner is not that bad'))<br>print(not_bad('This tea is not so hot'))<br>print(not_bad("It's bad yet not"))</div>]]></description>
         <enclosure url="" />
         <pubDate>2020-10-18 07:42:50 UTC</pubDate>
         <guid>https://padlet.com/darentanwork/42o8jy4yzebaiqmw/wish/838474788</guid>
      </item>
   </channel>
</rss>
