We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c7f2d9 commit 93a45d8Copy full SHA for 93a45d8
Beginers/basics.py
@@ -0,0 +1,39 @@
1
+'''
2
+Created on 22 Feb 2016
3
+
4
+@author: paulross
5
6
+# Given
7
+x = 10000.0
8
+y = 3.0
9
+print x / y
10
+print 10000 / 3
11
+# What is happening?
12
13
14
+print x - 1 / y
15
+print (x - 1) / y
16
17
18
19
+x = 'foo'
20
+y = 'bar'
21
+# Create 'foobar'
22
+# Create 'foo -> bar'
23
24
25
+# 'hello world'
26
+# print 'HELLO WORLD'
27
+# print 'hellX wXrld'
28
29
30
+# x = 10000.0
31
+# y = 3.0
32
+# print "10000 / 3 = 3333"
33
34
35
+# ['hello', 'world']
36
+# print 'helloworld'
37
+# print 'hello, world'
38
+# print 'hello
39
+# world'
0 commit comments