fruit = [ "apple", "banana", "cherry"]
for x in fruits:
print (x)
What is nothing?
A block of reusable code that performs a specific task is called this
What is Function?
print ("Hello World!)
What is "?
The process of finding and fixing errors in a program
What is Debugging?
The longer version of RAM
What is Random Access Memory?
x = 45
y = 25
z= 3
print ( z+x*y)
What is 1128?
This keyword is used to define a function in python
What is def?
fruits == ["apple", "banana", "cherry"]
for x in fruits:
print (x)
What is =?
A plain-language outline of a program’s logic before writing real code
What is Pseudocode?
The longer version of OOP
What is Object Oriented Programming?
nums = [7,6,8,9,11]
newNums= []
for i in nums:
newNums.append(i*2)
print (newNums)
What is [14,12,16,18,22] ?
This key word starts a conditional statement
What is if?
nums = [7,6,8,9,11]
newNums= []
for i in nums{
newNums.append(i*2)
}
print (newNums)
What is {}?
An error that occurs while a program is running
Runtime Error
The longer version of CPU
What is Central Processing Unit?
nums = [7,6,8,9,11]
evenNums= []
oddNums = []
for i in nums:
if i%2 != 0:
evenNums.append(i)
else:
oddNums.append(i)
print ("Even Numbers: ", evenNums)
print ("Odd Numbers: ", oddNums)
What is
Even Numbers: [7, 9, 11]
Odd Numbers: [6, 8]
This key word stops a loop immediately
What is break?
nums = [7,6,8,9,11]
evenNums= []
oddNums = []
for i in nums:
if i%2 != 0:
evenNums.append(i)
else:
oddNums.append(i)
print ("Even Numbers: "+ evenNums)
print ("Odd Numbers: "+ oddNums)
What is +?
A named storage location in a computers memory that holds a value or data
What is Variable?
The longer version of IDE
class Solution(object):
def twoSum(self, nums, target):
for i in range(len(nums)):
for j in range(i + 1, len(nums)):
if nums[i] + nums[j] == target:
return [i, j]
Input: nums = [2,7,11,15], target = 9
Output:
What is [0,1]?
A function that calls itself is called this
What is Recursive Function?
class Solution(object):
def twoSum(self, nums, target):
for i in range(len(nums)):
for j in range(i + 1, len(nums)):
if nums[i] + nums[j] = target:
return [i, j]
What is ==?
A prebuilt structured foundation of code, libraries, and tools that are designed to streamline software development
What is Framework?
The longer version of API
What is Application Programming Interface?