0% found this document useful (0 votes)
76 views

Python Lab Assignment 2

This document outlines a Python laboratory assignment given to students between January and May 2012. It contains 12 tasks related to extracting information from URLs, collecting user input, displaying options and messages, sending SMS messages, accessing inbox messages, searching and sorting messages, playing text, detecting key presses, and displaying shapes based on keys. The assignment covers a range of Python programming skills like user input, string manipulation, file access, sorting, graphics, and Bluetooth communication.

Uploaded by

Sunil Patil
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views

Python Lab Assignment 2

This document outlines a Python laboratory assignment given to students between January and May 2012. It contains 12 tasks related to extracting information from URLs, collecting user input, displaying options and messages, sending SMS messages, accessing inbox messages, searching and sorting messages, playing text, detecting key presses, and displaying shapes based on keys. The assignment covers a range of Python programming skills like user input, string manipulation, file access, sorting, graphics, and Bluetooth communication.

Uploaded by

Sunil Patil
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

School of Electronics, Devi Ahilya University, Indore

Python Laboratory Assignment (MTMCT 26(a))


Jan – May, 2012

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

5. Write the Python code for accessing the Inbox messages

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)

You might also like