We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0039a4e commit ca7944eCopy full SHA for ca7944e
domain.py
@@ -0,0 +1,7 @@
1
+def domain_name(url):
2
+ return url.split("//")[-1].split("www.")[-1].split(".")[0]
3
+
4
5
+print domain_name("http://github.com/carbonfive/raygun")
6
+print domain_name("http://www.zombie-bites.com")
7
+print domain_name("https://www.cnet.com")
var_assn.py
@@ -0,0 +1,18 @@
+a = "code"
+b = "wa.rs"
+name = a + b
+print name
+def DNAtoRNA(dna):
8
+ result = ""
9
+ for i in dna:
10
+ if i == "T":
11
+ result += "U"
12
+ else:
13
+ result += i
14
15
+ return result
16
17
+print DNAtoRNA("TTTT")
18
+print DNAtoRNA("GCAT")
0 commit comments