Skip to content

Commit 04b82d6

Browse files
committed
add stuff
1 parent 433e730 commit 04b82d6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

answers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ These are answers for exercises in the chapters. In programming, there's always
44

55
## ThinkPython: The way of the program
66

7-
1. The strings get added together.
8-
2. We get an error.
9-
3. We get a floating point number.
7+
1. With +, the strings get added together, and with * we get an error.
8+
2. With + we get an error, and with * the string is repeated multiple times.
9+
3. Python calculates the result and echoes it.
1010

1111
## Using if, else and elif
1212

the-way-of-the-program.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ learned everything.
3030
## More exercises
3131

3232
1. What happens if you use + between two strings, like
33-
`"hello" + "world"`?
34-
1. What happens if you use + between a string and an integer, like
35-
`"hello" + 123`?
36-
2. What happens if you use + between a float and an integer, like
37-
`3.14 + 123`?
33+
`"hello" + "world"`? How about `"hello" * "world"`?
34+
2. What happens if you use + between a string and an integer, like
35+
`"hello" + 3`? How about `"hello" * 3`?
36+
3. What happens if you use + between a float and an integer, like
37+
`0.5 + 3`? How about `0.5 * 3`?
3838

3939
***
4040

0 commit comments

Comments
 (0)