Skip to content

Commit adf99e7

Browse files
authored
Add Explanation of Strings, Ints, and Floats
I went through this guide and felt like it didn't do a great job of describing what exactly integers, floats, and strings are, so added a clause between lines 81-83 that should explain this more fully.
1 parent 9525910 commit adf99e7

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)