Skip to content

Commit 6d16c04

Browse files
committed
Fix ch4 exercise syntax error; cleanup
1 parent f465001 commit 6d16c04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ch04-strings-and-string-methods/6-working-with-strings-and-numbers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
a = input("Enter a number: ")
3434
b = input("Enter another number: ")
3535
product = float(a) * float(b)
36-
print("The product of " + a + " and " + b + " is " + str(product).)
36+
print("The product of " + a + " and " + b + " is " + str(product) + ".")

ch08-conditional-logic/9a-challenge-simulate-an-election.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
num_times_B_wins = 0
1111

1212
num_trials = 10_000
13-
for trial in range(0,num_trials):
13+
for trial in range(0, num_trials):
1414
votes_for_A = 0
1515
votes_for_B = 0
1616

0 commit comments

Comments
 (0)