What would be the result of this print?
a = [98, 25, 37, 84, 33]
a[3] = 21
print(a)
[98, 25, 37, 21, 33]
Make a python code to print numbers from 2 - 20 on the whiteboard
for x in range(2,21):
print(x)
Name the 4 datatypes in python
float, integer, strings, booleans
What color is the 'black box' on an airplane?
Orange
Name the main characters in Friends
Ross, Rachel, Chandler, Monica, Joey, Phoebe
What is the value of a and b in this code
a = 2
b = 3
for i in range(3):
a = a + b
b = a - b
print(a, b)
a = 12
b = 7
Ask the user for a number and show if it is positive or negative on the whiteboard
:D
Is a container that stores a value
Variable
name 10 elements of the periodic table
Public Decide
Whats the name of the magical portal that appears in thor movies?
Bifrost
What is the answer of:
a = [6,8, 1, 5]
x = 0
for i in range(len(a)):
if a[i] % 2 == 0:
x = x + a[i]
else:
x = x - 1
print(x)
12
Ask a number to a user and print all the even numbers from 1 to that number
on the Whiteboard
:p
How a function is executed?
By Calling it
What does 'Wi-fi' stands for?
Wireless Fidellity
How many bones are in a human body
What would it print?
a = [3,4,5,6,7]
x = 0
for n in a:
if n == 5:
continue
x = x + n
print(x)
20
Using functions (Create a function)
create a list with 5 float numbers and print the list
:O
Name the python operators
Assignment, Comparison, Logical, Artithmetic Operators
What does 'www' stands for?
World wide web
Who wrote the famous novel
"Alice's Adventures in Wonderland'
Lewis Carroll
s = "1284"
x = int(s[0]) + int(s[1])
y = int(s[2]) * int(s[3])
result = str(x) + str(y)
print(result)
332
Using Functions (Create the function)
Create a list with 5 float numbers and print the lowest number
:D
Name 7 Functions in python
int(), input(), print(), range(), append(), len(), count() etc...
What is penicillin made from?
Penicillin is made from a type of mold called Penicillium.
Name all in the classroom by their full names
Public decide