Skip to content

Commit 2ee4381

Browse files
Merge pull request #347 from Hoeyboey/patch-1
Add Explanation of Strings, Ints, and Floats
2 parents 9525910 + adf99e7 commit 2ee4381

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/lesson2/tutorial.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ not.
7878
Python is what's called a "typed language". This is to say that there are
7979
multiple *types* of objects that you work with in Python, and they don't all
8080
act the same way. The three types you've learnt so far are *integers* (`int`),
81-
*floats* (`float`), and *strings* (`str`). This is important to know because
82-
every Python programmer has tried to do this at least once in their career:
81+
*floats* (`float`), and *strings* (`str`). Integers are whole numbers, floats
82+
are numbers with a decimal point, and strings are any number of characters
83+
surrounded be either "" or ''. This is important to know because every Python
84+
programmer has tried to do this at least once in their career:
8385

8486
"7" + 8
8587

0 commit comments

Comments
 (0)