Lesson 3
We will learn for-loop
Answer to lesson 2 homework
- python function
input
returns the value you enter on the terminal - keyword
int
converts data type string to data type int
Ouput
Breakdown of for-loop
Code
- i is a variable of type int. you can name it anyway you like.
Output
Lab 1 - triagle
Use for loop and int keyword and python expression for printing * symbol six times e.g. "*" * 6