Presentation On 'Python'
Presentation On 'Python'
1. Introduction
4. Input Output
6. If else statements
7. For loop
8. While loop
9. Functions
Introduction
• For loops perform the same task (iterate) for the number of
times specified by an iterable (something that can be evaluated
repeatedly such as a list, string, or range).
• for defines the for loop
• x is the variable defining the number of times the statements
within the loop (print(myInt)) are executed.
• The range(start, stop, step) function is often used to define x.
• in is a Boolean operator that returns true if the given value (x) is
found within a given list, string, range etc.
• Example:
for i in range(1, 11):
print(i)
While Loop
Example:
Conclusions & Future Scope