Skip to content

Commit 107b719

Browse files
authored
Merge pull request #24 from code-for-tomorrow/ch6-achintya-practice-bug-fixes
Fixed bug with too_long solution
2 parents 36f07fc + 8778063 commit 107b719

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+201
-203
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.vscode/
2+
*.xml
3+
*.iml

1_beginner/chapter1/examples/comments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
# This is a single line comment
44

5-
'''
5+
"""
66
This is a
77
multi-line
88
comment
9-
'''
9+
"""
1010

1111
"""
1212
This is also a multi-line
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Printing
22

33
# Strings can be in single or double quotes
4-
print('Message')
4+
print("Message")
55
print("Message")
66

77
# You can print with multiple arguments
88
# Arguments are separated by a space by default
9-
print('Message', 'with', 'arguments')
9+
print("Message", "with", "arguments")
1010

1111
# You can use string concatenation ("adding")
1212
# to put strings together (just be careful about spacing!)
13-
print('Message' + 'with' + 'concatenation') # no spaces between words
13+
print("Message" + "with" + "concatenation") # no spaces between words

1_beginner/chapter1/practice/style.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# fix the style in this file so that it runs properly
44
# and there are comments explaining the program
55

6-
'''
6+
"""
77
print("Hello World!")
88
99
print("This is a Python program")
@@ -12,4 +12,4 @@
1212
input("Enter your age: ")
1313
1414
print("Your age is " + age)
15-
'''
15+
"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Hello World Again
22
# Print "Hello World" to the console
3-
print('Hello World')
3+
print("Hello World")
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# My First Chapter
22
# Print "My first chapter" and "Good morning!"
33
# Then print 3 other messages of your choice to the console
4-
print('My first chapter')
5-
print('Good morning!')
6-
print('This is a message')
7-
print('This is another message')
8-
print('One more message!')
4+
print("My first chapter")
5+
print("Good morning!")
6+
print("This is a message")
7+
print("This is another message")
8+
print("One more message!")

1_beginner/chapter2/examples/convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Converting to Different Data Types
22

3-
x = '5'
4-
y = '6'
3+
x = "5"
4+
y = "6"
55
sum = int(x) + int(y) # this is 11 because x and y were converted to integers
66
print(sum)
77

1_beginner/chapter2/examples/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# strings are a series of characters
44
# they are in single or double quotes
55
print("Jane")
6-
print('Doe')
6+
print("Doe")
77

88
# integers are whole numbers (positive, negative, and 0)
99
print(25)

1_beginner/chapter2/examples/string_or_number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# String or Number?
22

33
# strings
4-
x = '5'
5-
y = '6'
4+
x = "5"
5+
y = "6"
66
print(x + y) # this 56 (concatenation)
77

88
# integers

1_beginner/chapter2/examples/variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# use variables to store data
44
first_name = "Jane"
5-
last_name = 'Doe'
5+
last_name = "Doe"
66

77
age = 25
88

0 commit comments

Comments
 (0)