Apply what you've learnt about naming variables and see how much you know!
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4
🟢 Question 1: Which line of Python code is valid?
Anonymous Quiz
4%
12 = a
15%
var a = 12
3%
a: 12
78%
a = 12
❤19👍14
🔵 Question 2: Which is the best variable name for Player 1's username?
Anonymous Quiz
7%
1_player_username = "jackbauer"
5%
p1u = "jackbauer"
86%
player1_username = "jackbauer"
3%
p1 user name = "jackbauer"
1❤13👍2
Please open Telegram to view this post
VIEW IN TELEGRAM
❤9
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
15%
ya
7%
en
13%
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