Python String Manipulation
Python Regex
Python Math
JS Coding Facts
Python Coding Facts
100

This method converts all characters in a string to lowercase.

What is .lower()

100

This regex pattern matches any digit.

What is \d?

100

The result of 5 // 2

What is 8?

100

JavaScript runs primarily in this environment on the client side.

What is the browser?

100

Python uses this keyword to define a function.

What is def?

200

This method removes whitespace from both the beginning and end of a string.

What is .strip()?

200

This function returns the first match in a string.

What is re.search()?

200

The result of 10 % 3

What is 1?

200

What is the output?

console.log([] == false)

What is true?

200

This data type stores key-value pairs.

What is a dictionary?

300

What is the output?

s = "abcdef"
print(s[::-1])

What is "fedcba"?

300

What does this pattern match?
^[^aeiou]+$

What is a string containing only consonants (no vowels) from start to end?

300

What is the result?

(-3) ** 2

What is 9?

300

What is the output?

let x = 5;
function test() {  console.log(x);  let x = 10; }
test();

What is a ReferenceError?

300

What is the output?

x = [1,2,3] x.append([4,5])
print(len(x))

What is 4?

400

What is the output?

text = "one,two,,three"
print(text.split(","))

What is ['one', 'two', '', 'three']?

400

What is the output?

import re re.sub(r"\s+", "-", "Python   is  fun")

What is "Python-is-fun"?

400

What is the output?

import math 
math.sqrt(16) + math.ceil(2.1)

What is 6.0?
(4.0 + 2)

400

What is the output?

console.log(typeof null)

What is "object"?

400

What is the output?

def func(x=[]):    x.append(1)    return x
print(func())
print(func())

first print [1]
second print [1,1]
 

500

What is the output?

s = "Mississippi"
print(s.replace("ss", "X", 1))

What is "MiXissippi"?

500

What does this regex validate?
^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$

What is a valid email address format?

500

What is the result?

sum([i for i in range(1,6) if i % 2 == 0])

What is 6?
(2 + 4)

500

What is the output?

console.log(typeof NaN)

What is "number" ?

500

What is the output?

def add(a, b=5):    return a + b
print(add(3))

What is 8?