<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Introduction to Programming - Lecture 3
Material covered 
Step1:  Chained Conditional
if &lt;condition 1&gt; is True
Step2:  The condition need not directly involve a logical operator. For example 
Step3:  Iterations
Iterative constructs are a key feature of any well developed programming language.
Looping can be done over an iterable which can be a list, set, dictionary, etc.
Let us concern ourselves with lists for now.
Common library functions to use in loops 
Step4:  enumerate
 Usage 
Step5:  For Loop
Structure
for value in iterable
Step6:  Tuples
Tuples are the immutable equivalent of lists.
Declared by 
Step7:  You cannot change any element of a tuple to a new value since tuples are immutable types. For example 
Step8:  Short in-class assignment
Write a program to print the following pattern.
**********
****--****
***----***
**------**
*--------*
**------**
***----***
****--****
**********
First line --&gt; 10 stars
Second line --&gt; 4 stars ,2 dashes, 4 stars
Third line --&gt; 3 stars, 4 dashes, 3 stars
.
.
.
Eigth line --&gt; 4 stars ,2 dashes, 4 stars
Ninth line --&gt; 10 stars again.
<ASSISTANT_TASK:>
Python Code:
# Greater than ( > )
if 1 > 0:
    print("One is more than zero")
else:
    print("BITS Pilani Goa Campus is better than IIT Kanpur")
    
# Less than ( < )
if 12 < 42:
    print("Yes, 12 is less than 42")
else:
    print("Everyone registered in CTE Python will pass with distinction (90%+ marks)")
    
# Equal to ( == )
if 2 + 2 == 4:
    print("Two plus Two equals Four")
else:
    print("Lite......")
    
# Not equal to ( != )
if 1 != 0:
    print("Sachin")
else:
    print("Kohli")
    
# Inversion operator
if not 2 + 2 == 4:
    print("Lite....")
else:
    print("CTE Python....")
    
Explanation: Introduction to Programming - Lecture 3
Material covered :
1. Conditional statement "if" and Logical Operators
2. For loops
If-else and Logical Operators
"If" is the simplest conditional statement. It simply checks if an evaluation condition is True and if it is then it executes a certain block of code. The checking is usually done by a logical operator such as --&gt; more than( &gt; ), less than( &lt; ), equal to( == ), not equal to ( != or not), etc
 if &lt;condition&gt;:
     execute statement(s)
Binary Logical Operators :
1. Greater than ( &gt; )
2. Less than ( &lt; )
3. Equal to ( == )
Unary Logical Operators :
1. ! or not
Let us look at some examples :
End of explanation
if 1 < 0:
    print(1, end='')
elif 2 == 3:
    print(2, end='')
elif not 3 == 4:
    print(3, end='')
print(".....Lite")
Explanation: Chained Conditional
if &lt;condition 1&gt; is True:
    execute &lt;statement(s) &gt; 1
elif &lt;condition 2&gt; is True:
    execute &lt;statement(s) &gt; 2
elif &lt;condition 3&gt; is True:
    execute &lt;statement(s) &gt; 3
elif &lt;condition 4&gt; is True:
    execute &lt;statement(s) &gt; 4
.
.
.
else:
    execute &lt;statement(s)&gt; n
#### Let us see an example :
End of explanation
a = [1, 2, 3]
if isinstance(a, list):
    print(a, "is a list !")
    
if 2 in a:
    print("Yes, 2 is in ", a)
    
if 5 not in a:
    print("No, 5 is not in ", a)
Explanation: The condition need not directly involve a logical operator. For example :
End of explanation
list(range(0, 10))
list(range(-4, 10))
list(range(0, 10, 3))
list(range(0, 5, -6))
list(range(-10, 10, -5))
list(range(10, 2, 3))
list(range(10, 1, -2))
Explanation: Iterations
Iterative constructs are a key feature of any well developed programming language.
Looping can be done over an iterable which can be a list, set, dictionary, etc.
Let us concern ourselves with lists for now.
Common library functions to use in loops :
range
 Usage : range(start, stop, step)
 This library function returns a list which is an arithmetic progression. The default step value is 1.
Examples
End of explanation
list(enumerate(range(0,5)))
list(enumerate(range(0,5), 10))
Explanation: enumerate
 Usage : enumerate(&lt;list&gt;, starting_index=1)
 This library function returns an iterable object contains tuples of structure (index, list value at index).
 Extra optional argument provides a different starting index. Default starting index is 0.
 In that case the tuples are of the structure (index, list value at &lt;index - starting_index&gt;)
Examples
End of explanation
a = [1, 2, 3, 4, 5]
for value in a:
    print(value, end=' ')
b = [[1, 2, 3],
     [4, 5, 6],
     [7, 8, 9]]
for sublist in b:
    for value in sublist:
        print(value, end=' ')
Explanation: For Loop
Structure
for value in iterable:
    execute statement(s)
Only by looking at many examples will this become clear
End of explanation
a = (2, 3, 4)
print(a)
Explanation: Tuples
Tuples are the immutable equivalent of lists.
Declared by : (value_1, value_2, .....)
End of explanation
a[1] = 10
print(a)
a = ["One", "Two", "Three"]
for i, value in enumerate(a):
    print("Value at index <", i, "> of list<a> is : ", value)
    
for i in range(0, 10):
    for j in range(0, i):
        print("*", end='')
    print("")
for i in range(0, 10):
    for j in range(10, i, -1):
        print(" ", end='')
    for k in range(0, i):
        print("*", end='')
    print("")
Explanation: You cannot change any element of a tuple to a new value since tuples are immutable types. For example :
End of explanation
for i in range(0, 5):
    for j in range(0, 5 - i):
        print("*", end='')
    for k in range(0, 2*i):
        print("-", end='')
    for j in range(0, 5 - i):
        print("*", end='')
    print("")
for i in range(3, -1, -1):
    for j in range(0, 5 - i):
        print("*", end='')
    for k in range(0, 2*i):
        print("-", end='')
    for j in range(0, 5 - i):
        print("*", end='')        
    print("")
Explanation: Short in-class assignment
Write a program to print the following pattern.
**********
****--****
***----***
**------**
*--------*
**------**
***----***
****--****
**********
First line --&gt; 10 stars
Second line --&gt; 4 stars ,2 dashes, 4 stars
Third line --&gt; 3 stars, 4 dashes, 3 stars
.
.
.
Eigth line --&gt; 4 stars ,2 dashes, 4 stars
Ninth line --&gt; 10 stars again.
End of explanation
<END_TASK>