Understanding Data Types and How to Manipulate Strings
————————
01 - Day 2 Goals what we will make by the end of the day
02 - Python Primitive Data Types
03 - Data Types Quiz
04 - Type Error, Type Checking and Type Conversion
05 - [Interactive Coding Exercise] Data Types
06 - Mathematical Operations in Python
07 - [Interactive Coding Exercise] BMI Calculator
08 - Number Manipulation and F Strings in Python
09 - [Interactive Coding Exercise] Life in Weeks
10 - Mathematical Operations Quiz
11 - Day 2 Project Tip Calculator
12 - You are already in the top 50%
————————
Please open Telegram to view this post
VIEW IN TELEGRAM
❤5👍4🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
❤8👍6
🟢 Question 1: What is the data type of the mystery variable?
mystery = 734_529.678
mystery = 734_529.678
Anonymous Quiz
20%
String
20%
Qurtle
51%
Float
9%
Float
❤4
🔵 Question 2: I've put a spell on you. You are now a computer. If I give you the following code, what will you print out?
street_name = "Abbey Road" print(street_name[4] + street_name[7])
street_name = "Abbey Road" print(street_name[4] + street_name[7])
Anonymous Quiz
16%
ya
7%
en
14%
eR
64%
yo
👍12❤2
🟠 Question 3: Which statement below is incorrect?
Anonymous Quiz
9%
857.25 is a Float
67%
"False" is a Boolean
5%
932 is an Integer
19%
"523" is a String
1👍4❤3
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3❤2
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3🔥1
We've covered a lot of mathematical operations you can do with Python. e.g. round(), floor division //, PEMDAS etc. This quiz is going to check to see if you can use all these concepts correctly.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3🔥1
⚫️ Question 1: You are a computer. What will this line of code print?
print(6 + 4 / 2 - (1 * 2))
print(6 + 4 / 2 - (1 * 2))
Anonymous Quiz
13%
3
4%
5
79%
6.0
4%
8.0
1❤6👍4🔥1
🟡 Question 2: What is the data type of the result of the variable a in the following line of code:
a = int("5") / int(2.7)
a = int("5") / int(2.7)
Anonymous Quiz
4%
bool
10%
str
38%
int
47%
float
🔥7❤1
Please open Telegram to view this post
VIEW IN TELEGRAM
❤8👍2🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3👍3