<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Python Day 2 by Miaomiao Zhou</title>
      <link>https://padlet.com/miaomiaozhou88/pythondaytwo</link>
      <description>share your codes here</description>
      <language>en-us</language>
      <pubDate>2017-02-08 09:45:58 UTC</pubDate>
      <lastBuildDate>2025-10-22 21:50:48 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Chun + Mohammed</title>
         <author></author>
         <link>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152401995</link>
         <description><![CDATA[<div>print sum(range(101,200,2))</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-02-08 10:01:52 UTC</pubDate>
         <guid>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152401995</guid>
      </item>
      <item>
         <title>MM</title>
         <author>miaomiaozhou88</author>
         <link>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152403314</link>
         <description><![CDATA[<div>a = 100 # define input a<br><br>b = 200 # define input b<br><br>addup = 0 # define sum &nbsp;<br><br>while a&lt;b:# now we create the loop&nbsp; "The sum of all odd integers from a through b"<br><br>&nbsp; &nbsp; a=a+1 # a increases, remember, we are making a a variable<br><br>&nbsp; &nbsp; if a%2==1: # if a devided by 2 remains 1, it is an odd number<br><br>&nbsp; &nbsp; &nbsp; &nbsp; addup +=a &nbsp; # then the odd number add up each other, you can also do addup = addup+a<br><br>&nbsp; &nbsp; &nbsp; &nbsp; print addup # gives your final sum<br><br>#print addup # &nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-02-08 10:07:33 UTC</pubDate>
         <guid>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152403314</guid>
      </item>
      <item>
         <title>Rosalind 3</title>
         <author></author>
         <link>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152406564</link>
         <description><![CDATA[<div>class DnaString(str): <br>    def __new__(self, s): <br>        return str.__new__(self, s.strip().upper())<br><br>    def __init__(self, _):<br>        self.num_A = self.count("A") <br>        self.num_C = self.count("C") <br>        self.num_G = self.count("G") <br>        self.num_T = self.count("T") <br><br>    def stats(self):<br>        return len(self), self.num_A, self.num_C, self.num_G, self.num_T<br><br>dna = raw_input("Enter DNA sequence:") <br>d = DnaString(dna)<br><br>print(d)<br>print(d.stats())</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-02-08 10:19:42 UTC</pubDate>
         <guid>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152406564</guid>
      </item>
      <item>
         <title>MM</title>
         <author>miaomiaozhou88</author>
         <link>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152406744</link>
         <description><![CDATA[<div>#ask for the DNA string from a user input<br>DNA_string = raw_input("DNA?")<br># define your counter, we count from 0, each nuclear has one counter<br>a = 0<br>t = 0<br>c = 0<br>g = 0<br><br># now count what is in your DNA sequence<br>for i in DNA_string: #the for loop which look at each letter in the string<br>&nbsp; &nbsp; if i=="A":<br>&nbsp; &nbsp; &nbsp; &nbsp; a+=1<br>&nbsp; &nbsp; elif i=="T":<br>&nbsp; &nbsp; &nbsp; &nbsp; t+=1<br>&nbsp; &nbsp; elif i=="C":<br>&nbsp; &nbsp; &nbsp; &nbsp; c+=1<br>&nbsp; &nbsp; else:<br>&nbsp; &nbsp; &nbsp; &nbsp; g+=1<br>print "Count of A is %s, T is %s, C is %s, G is %s"%(a,t,c,g) # creat a string with the answer</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-02-08 10:20:23 UTC</pubDate>
         <guid>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152406744</guid>
      </item>
      <item>
         <title>Rosalind 3</title>
         <author></author>
         <link>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152407140</link>
         <description><![CDATA[<div>from __future__ import division<br><br>seq = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAG"<br><br>dna_count = seq.count("A") + seq.count("T") + seq.count("G") + seq.count("C")<br><br>print seq.count("A"),"is het aantal A's"<br><br>print seq.count("C"),"is het aantal C's"<br><br>print seq.count("G"),"is het aantal G's"<br><br>print seq.count("T"),"is het aantal T's"<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-02-08 10:21:50 UTC</pubDate>
         <guid>https://padlet.com/miaomiaozhou88/pythondaytwo/wish/152407140</guid>
      </item>
   </channel>
</rss>
