Python Lab Assignment 2
Python Lab Assignment 2
ASSIGNMENT - II
1. Extract the domain name from URL of the form http://www.something.com
[Domain Name: In this example is something]
2. Take the name, DOB from the use using MULTI QUERY dialog and display
name and age of the user using NOTE dialog
3. From the multiple option available through POP UP menu, facilitate user to
select the option and display the selected option using NOTE dialog
4. Give user the option to make a shopping list from the item available in the
MULTI SELECTION LIST and send the shopping list through SMS to a given
number
6. Write the Python code for searching the string entered by the user in the Inbox
and displaying the messages using NOTE dialog, which contains the string
entered by the user.
7. Write the Python program for sorting the messages in the Inbox. Sorting can be
done by
a. Time of receive (Recent Messages first)
b. Sender
8. Unread Messages (Unread messages on the top)
9. Write Python code for playing the text which is entered by the user through a
query dialogue.
10. Write the program to display a note mentioning the name of the key which is
pressed by the user.
11. Display the rectangle, triangle and circle when following keys are pressed
a. Up Key: Triangle
b. Down Key : Rectangle
c. Key 2 : Circle
12. Write Python code for Phone-to-Phone Communication using Bluetooth (OBEX)