Skip to content

Commit d1cb8f4

Browse files
Update basics.py
1 parent 460a94a commit d1cb8f4

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

Beginers/basics.py

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
'''
2-
Created on 22 Feb 2016
3-
4-
@author: paulross
5-
'''
61
# Given
72
x = 10000.0
83
y = 3.0
@@ -18,22 +13,28 @@
1813
# Given
1914
x = 'foo'
2015
y = 'bar'
21-
# Create 'foobar'
22-
# Create 'foo -> bar'
16+
# Create 'foobar' using x and y
17+
# Create 'foo -> bar' using x and y
2318

2419
# Given
25-
# 'hello world'
26-
# print 'HELLO WORLD'
27-
# print 'hellX wXrld'
20+
# x = 'hello world'
21+
# from x create 'HELLO WORLD'
22+
# from x create 'hellX wXrld'
2823

2924
# Given
3025
# x = 10000.0
3126
# y = 3.0
32-
# print "10000 / 3 = 3333"
27+
# print "10000 / 3 = 3333" using x and y
3328

3429
# Given
3530
# ['hello', 'world']
3631
# print 'helloworld'
37-
# print 'hello, world'
32+
# print 'hello world'
3833
# print 'hello
39-
# world'
34+
# world'
35+
36+
# Given
37+
# x = "Monty Python and the Holy Grail"
38+
# create the list ['Monty', 'Python', 'and', 'the', 'Holy', 'Grail']
39+
# y = "one,two,three,four"
40+
# create the list ['one', 'two', 'three', 'four'

0 commit comments

Comments
 (0)