Lesson 2 Assignment
Assignment Date: 04-03-2022 Due Date: 07-03-2022 9PM
Intro
Hi all! We would like you to do some simple practices over the weekend to reinforce your learning from this Tuesday as we noticed some of you seemed confused over the more complex concepts we taught. We would like you to solve these questions by next Monday 9pm.
Questions
Q1) Find the output for the following code:
persons = ["John", "David", "Thomas", "Pierce", "Ronson"]
for person in persons:
print(person)
Q2) Complete the code below:
for i in ___(___, ____):
print(i)
# Gives the following output:
1
2
3
.
.
.
70
# END OF OUTPUT
Q3) Initalise any 4 variables that each have the data types of String, Integers, Floats and Lists respectively.
Submission
You are allowed to look up online for help, we recommend w3schools and stackoverflow. Among your groups, create a Google Document and put your answers to the questions in there. Share the said document to Issac at lip_kin_cung_issac@ngeeannsec.net or Prakhar at trivedi_prakhar_nilesh@ngeeannsec.net
Submit your solutions by Monday 9pm