Python L1 Assignments Topgear Hima 284446
Python L1 Assignments Topgear Hima 284446
Code:
Output:
for x in f(6):
print x
Code:
Output:
------------------------------------------------------------------------------------------------------------------------------------------
3. Write a program to receive a string from keyboard and check if the string has two 'e' in the characters.
If yes return True else False.
Code:
Output:
print dolots(4)
print counter
Code:
Output:
Input File:
Code:
Output:
Code:
Code:
Output:
------------------------------------------------------------------------------------------------------------------------------------------
8. Create a suitable data construct to read the data from an xml document as shown below:
<bookstore shelf="New Arrivals">
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentius</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
Code:
Output:
Code:
Output:
Code:
Output: