Please enable JavaScript.
Coggle requires JavaScript to display documents.
Day 2 Notes - Coggle Diagram
Day 2 Notes
-
-
Subscripting is pulling out a particular specific value from a string so that only that value gets printed to the screen
If a number is put in double-quotes, the console treats it as a string value.
In order to declare/create an integer, all you have to do is write the numbers without double-quotes. If you want to put commas in between the digits, type underscores since the console will treat it as a comma and the algorithm will still run correctly
-
Type checking is a function used by programmers so that the algorithm can define the data type of the value
Type casting is a function used by programmers to convert different values from one data type to another
Python applies the BODMAS rule as well, as the order to equations carried out are determined by their place in BODMAS
-
F-Strings are used in Python as a way of concatenating different data types without a plus sign. Just type f before the quotes and it will work