Programming fundamentals Flashcards
(8 cards)
1
Q
What is sequence
A
Statements are written one after the other
2
Q
What is selection
A
involves if, else or case statements
3
Q
What is iteration
A
repetition of a certain statement.
4
Q
What is casting?
A
converting data to another data type
5
Q
How do you slice in python bitch
A
a = [1,2,3,4,5,6]
print(a[0:7])
light work
6
Q
What are the SQL commands
A
Select
From
Where
7
Q
How do you open a file in python
A
file = open(“textfile.txt”, “w”)
8
Q
How to read an entire file in python
A
for i in file:
print(i)