Comments, Variables, Operators & Data Types
Else if
statements
Lists and Arrays
Loops
Random STEM Trivia
100

What symbol is used to make a comment

What is # (Hashtag, Sharp, etc.)?

100

Else and Elif statements are usually used for what?

What is conditional coding?

100

Which library did we use in this course to create arrays?

What is NumPy?

100

What is used to run a block of code a specified number of times?

What is a For loop?

100

Name another programming language

Javascript, Java, C#, C++, Ruby, PHP, html, and more!

200

What symbol(s) is used to make multi-line comments?

What are """ (Triple quotations)?

200

Its important to ensure you have a what after the if statement in a code?

What is a colon?

200

Name one difference between lists and arrays

●Arrays are better for multiple dimensions

●Arrays prefer to remain the same size

●Arrays are better for use with numbers

200

What keyword is used to stop a loop? 

What is break?

200

How many bones do sharks have?

0!

300

What specific data type is x = 5.5?

What is (Numeric)Float?

300

What can tell you that code is part of a statement?

What is indented? 

300

numpy can be shortened to what? 

np

300

A while loop is dependent on which data type?

What is Boolean? (True)
300

Which bug created the term debugging

What is a moth?
400

What would the following function output? 

x = 4

x+=3

print(x)

What is 7?

400

Give an example of a Boolean Data type

What is True or False?

400

Name 1 way to add 2 lists together

What is the + operator and the .append() function?

400

What type of loop do you always want to avoid? (Can break your computer!!)

What are Infinite loops?

400

How fast can pythons move?

What is 1 mph

500

Which operator allows you to check what data type something is?

What is print(type())

500

b = 10

a = 7 

Write an if statement in the chat that would print "b is greater than a" if b is a larger number

if b > a: 

        print("b is greater than a")

500

import numpy

array1 =numpy.array([[1,2,3], [4,5,6]])

print(array1[1,0])

What will print?

4

500
What decides the number of times a block of code runs in a for loop?

What are the number of iterations?

500

Name one platform that was coded (partially works too!) in python

What is

  • Google.
  • Facebook.
  • Instagram.
  • Spotify.
  • Quora.
  • Netflix.