Skip to content

Commit 491808c

Browse files
committed
Fix lines that were too long
1 parent 6e47321 commit 491808c

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

1_beginner/chapter2/solutions/favorite.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
favorite_person = input("Who is your favorite person? ")
1010

1111
# Display output
12-
print(favorite_person + " bought you " + favorite_food + " and " + favorite_drink + ".")
12+
print(favorite_person + " bought you " + favorite_food + " and "
13+
+ favorite_drink + ".")

1_beginner/chapter3/examples/logic_operators.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
# or
1212
was_computer_bought = True
1313
was_bike_bought = False
14-
print("Was a computer or bike bought? " + str(was_computer_bought or was_bike_bought))
14+
print("Was a computer or bike bought? "
15+
+ str(was_computer_bought or was_bike_bought))
1516

1617
# not
1718
is_raining = False

1_beginner/chapter3/practice/change.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
CENTS_PER_DOLLAR = 100
2121

22-
num_cents = int(float(input("How many dollars do you have: $")) * CENTS_PER_DOLLAR)
22+
num_cents = int(float(input("How many dollars do you have: $"))
23+
* CENTS_PER_DOLLAR)
2324

2425
# What do you do next? Write code here

1_beginner/chapter3/solutions/change.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
CENTS_PER_NICKEL = 5
2424

2525
# prompt user for dollars and convert it to cents
26-
num_cents = int(float(input("How many dollars do you have: $")) * CENTS_PER_DOLLAR)
26+
num_cents = int(float(input("How many dollars do you have: $"))
27+
* CENTS_PER_DOLLAR)
2728

2829
# calculate change and display it
2930
dollars = num_cents // CENTS_PER_DOLLAR

0 commit comments

Comments
 (0)