Professional Documents
Culture Documents
BES103_PythonLab4
BES103_PythonLab4
INTRODUCTION:
In this Lesson, you will explore to run that can generate Arrays and
Matrices examples in Python using Nested For loops. After completing this
lesson, you will be more confident in creating your own Python program
involving arrays and matrices.
Enjoy exploring!
3. In it, encode the following codes shown in Figure 4.1 on your PyCharm
editor.
BES 103– Computer Fundamentals and Programming
4. Once done, right click on any part of the editor then select and click Run.
5. In the Run tool window seen below the editor, you will be asked to enter
any number. Once done inputting, press “Enter” to continue.
7. The images of the two windows must be documented and must include
captions. Also, draw a conclusion about the activity. The output of this
Activity as well as the Analysis section seen below must be saved in one
document.
1. Explain what the nested for loop shown below did with the 9 numbers
you entered:
Answer:_____________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_______________________________________________________
2. Explain what the second nested for loop shown below did with first
nested for loop.
Answer:_____________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
_______________________________________________________.
3. What is the function of the line code shown below of this program?
Explain._____________________________________________________
___________________________________________________________
___________________________________________________________
_______________________________________________________.
4. Compare the output of the line codes shown in the above items 2 & 3.
to the line codes shown below.
Explain._____________________________________________________
___________________________________________________________
___________________________________________________.