Skip to content

Commit 93a45d8

Browse files
committed
Adds basics.
1 parent 2c7f2d9 commit 93a45d8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Beginers/basics.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
# Given
14+
print x - 1 / y
15+
print (x - 1) / y
16+
# What is happening?
17+
18+
# Given
19+
x = 'foo'
20+
y = 'bar'
21+
# Create 'foobar'
22+
# Create 'foo -> bar'
23+
24+
# Given
25+
# 'hello world'
26+
# print 'HELLO WORLD'
27+
# print 'hellX wXrld'
28+
29+
# Given
30+
# x = 10000.0
31+
# y = 3.0
32+
# print "10000 / 3 = 3333"
33+
34+
# Given
35+
# ['hello', 'world']
36+
# print 'helloworld'
37+
# print 'hello, world'
38+
# print 'hello
39+
# world'

0 commit comments

Comments
 (0)