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
❤12👍4🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
❤13👍7
🟢 Question 1: What is the data type of the mystery variable?
mystery = 734_529.678
mystery = 734_529.678
Anonymous Quiz
19%
String
17%
Qurtle
54%
Float
9%
Float
❤12
🔵 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
18%
ya
8%
en
13%
eR
61%
yo
👍15❤5
🟠 Question 3: Which statement below is incorrect?
Anonymous Quiz
8%
857.25 is a Float
65%
"False" is a Boolean
6%
932 is an Integer
21%
"523" is a String
1❤6👍5
Please open Telegram to view this post
VIEW IN TELEGRAM
❤10👍6
Please open Telegram to view this post
VIEW IN TELEGRAM
❤9🔥4👍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
👍4❤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
12%
3
5%
5
79%
6.0
4%
8.0
1❤9👍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
48%
float
🔥8❤3
Please open Telegram to view this post
VIEW IN TELEGRAM
❤14👍4🔥2
Please open Telegram to view this post
VIEW IN TELEGRAM
❤9👍3