Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
PracticalNo.1 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved 060010502–Programming in Python Enrollment No Write a program that prompts the user for following information: a. Number b. Choice(Choicevaluecanbe1 or2) Ifuserenterschoice1thenitshouldcheckwhetherthegivennumberis Armstrong or not Ifuserenterschoice2thenitshouldcheckwhetherthegivennumberis palindrome or not To make aware of the basics of conditional statements and looping statements. Control flow statements. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO1: design and implement programs using Python programming language. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page no.62-65 1. Is it possibletosolvethetriangle1using for loop? If yes, how it can be solved? 2. Give example of if control flow statement. Assessment Solution achieves the Viva desired objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page1 PracticalNo.2 Practical Problem 060010502–Programming in Python Enrollment No Write a menu driven program that print triangle pattern based on user selection. Menu shouldhave3menuitemsinitnamelypattern1,pattern2 andpattern3. a. Whenuserselectspattern1 then first it should ask user to enter value for number of line and then according to input following pattern should be displayed. @ $ b. $ @ $ @ c. Pre-requisite Duration for completion PEO(s) to be achieved @ $ $ @ $ Whenuserselectspattern2 then first it should ask user to enter value for number of line and then according to input following pattern should be displayed. @ Objective(s) @ $ @ $ @ $ @ @ Whenuserselectspattern3 then first it should ask user to enter value for number of line and then according to input following pattern should be displayed. * ** *** ******** *** ** * To make aware of the basics of conditional statements and looping statements. Control flow statement 1Hour PEO2:To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Ms.Mitali Dixit 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO1: design and implement programs using Python programming language. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page no.62-65 Page2 Post questions Laboratory 060010502–Programming in Python 1. 2. 2015 Differentiate for loop and while loop. What is the significance of using else clause in loop? Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page3 PracticalNo.3 Practical Problem 060010502–Programming in Python Enrollment No. Write a python style code to implement following instructions. a. b. c. d. Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 Create a list with one decimal literal and one string literal. Append float literal in the list. Append one iterator in the list. Remove one sequence from the list To make aware of list data type and its methods. List data type 1Hour PEO2:To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page No: 56-57 1. What are the benefits to use list data type? 2. Write the statements which demonstrates the usage of list methods. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page4 PracticalNo.4 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Write a python code to implement two mutating and two non mutating methods to demonstrate dictionary is mutable object. To make aware of dictionary data type and its methods. Dictionary data type 1Hour PEO2:To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.59-61 1. Write three differences between mutable and non mutable object. 2. Give example of three methods of dictionary. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page5 PracticalNo.5 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Write a python function to print all the dictionary values in one line. To make aware python function Writing function definition, calling of a function and type of parameters passing. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.70-75 1. Write the importance of each function attributes. 2. How to define a method and how it can be called? Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page6 PracticalNo.6 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Write a python function with calling to demonstrate passing of number of Positional parameter and number of named parameter. To make aware of passing named parameter and positional parameter. Writing function definition, calling of a function and type of parameters passing. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly PageNo.70-75 1. Distinguish named parameter and positional parameter. 2. What is the significance of using * and ** with respect to function parameter? Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page7 PracticalNo.7 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Write a program to create parent class Person and from it derive two Classes namely Student and Employee. Classes shall have following attributes and methods: Person name, age,gender, city, get(), set() Student id, sem,div, sub1marks, sub2marks, sub3marks, result() Employee id, designation, salary,gross_salary() Note: for gross_salary() consider following value: If salary< 10000 then HRA=10%, DA=5%, PF=200 If salary> 10000 then HRA=15%, DA=7%, PF=10% To make aware of inheritance and its types. Object oriented concepts. 1.5Hour PEO2:To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.82-94 1. Write pros and cons of each multilevel inheritance. 2. How new MRO is good than classic MRO? Assessment Solution achieves the Viva desired objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page8 PracticalNo.8 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Create two classes Bicycle and Mountain bike. Bicycle should posses the attributes like gear and max speed and methods like init and showdata() ,which should be extended by Mountainbike. Mountain bike class should have the unique characteristics at height and showdata() method to display all the attributes value To make aware of inheritance and constructor using init method. Object oriented concepts. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.94-98 1. How delegating super class method supports multi level inheritance? 2. Write a code which demonstrate overriding attributes and methods. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page9 PracticalNo.9 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. A pay roll program can make use of inheritance to take care of different Classes of employees such as Manager, Scientist. They all share basic characteristics such as: EmpnoE mpname Salary In addition to the common characteristics, they may have some additional ones: Manager will get bonus and Scientist will get prize Each class should have its own set of properties and common method ShowData(). Write a python program to implement such situation. To make aware of multi level inheritance. Object oriented concepts. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.94-98 1. Write usage of init method. 2. Write example of cooperative super class method calling. Assessment Solution achieves the desired Viva objective(s) OutofMarks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page 10 PracticalNo.10 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved 060010502–Programming in Python Enrollment No. Generate translation.py using Translation table concept, to implement following actions: a. Generate translation table with mapping of small vowels to capital vowels b. Apply the generated translation table on string to replace the mapped character To make aware of Template class and methods. Usage of string library. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO2:comprehend the standard libraries and modules name lyre, string and OS. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno. 196-197 1. Describe the methods provided by template string. 2. Differentiate substitute and safe_substitute method. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page11 060010502–Programming in Python PracticalNo.11 2015 Enrollment No. Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved Write a python shell script which searches the string and replaced by Another string. Also display how many strings have been replaced. To make aware of regular expression object methods. Regular expression and string methods. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions PO6:Ability to use the techniques, skills and modern tools as necessary for CO3: develop program to solve pattern matching problem using re module. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.207-210 1. Give brief idea about regular expression object methods. 2. Write a python state ment to demonstrate the difference of match And search method. Assessment Solution achieves the desired Viva objective(s) Out of Marks Secured by 10 5 the student Signature Date Ms.Mitali Dixit Page12 PracticalNo.12 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved 060010502–Programming in Python Enrollment No. Write a menu driven program to convert given string into following case. Proper validation is necessary. a. Title case b. Lower case c. Uppercase d. Toggle case To make aware of string library usage. String object methods. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO2:comprehendthestandardlibrariesandmodulesnamelyre,stringand OS. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.186-191 1. Write a detail note on methods of string object. 2. Give example of expand tabs(), split() and lstrip()methods. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page13 PracticalNo.13 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved 060010502–Programming in Python Enrollment No. Write a program to print string starts in following pattern from given sequence of string. If pattern do not match then provide appropriate message. a. ‘A.*’ b. ‘AB.*’ c. ‘AC.*’ d. ‘AD.* To make aware of pattern searching using RE. Regular expression. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO3: develop program to solve pattern matching problem using re module. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.201-206 1. List out the RE pattern with the ir meaning. 2. Write the above given program with search method. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page14 PracticalNo.14 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved 060010502–Programming in Python Enrollment No. Write a menu driven program that contains following menu items. 1. Print total number of sub-directory in current directory. 2. Print total number of files available in sub-directory of given path. 3. Print current given directory name exists or not. 4. Remove .txtfiles from given path. To make aware of OS file object methods. File object. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO4: develop program to perform operations on file using os module. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.241-246 1. Explain open() method to create file with all file mode. 2. Differentiate read, readline and readlines methods. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page15 PracticalNo.15 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved 060010502–Programming in Python Enrollment No. Write a program to search digits from file and print addition of all digits. To make aware library of OS module. File object methods. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO4: develop program to perform operations on file using os module. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Pageno.218-221 1. Describe four methods of shutil module. 2. Write one line description for all methods of os.path module. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page16 PracticalNo.16 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved 060010502–Programming in Python Enrollment No. Create a window which contains an Entry box and a button. On click of button, contents of Entry box shall be written into the txtfile. Appropriate validation is required. To make aware of Tkinter GUI programming. Tkinter fundamentals. 1Hour PEO2:To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO4: develop program to perform operations on file using os module. CO5:use Tkinter module to create widgets. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly PageNo.406-413, 216-221 1. Write about the functions available with TkMessagebox module to print different type of message. 2. Write about the functions available with TkFile Dialog module. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page17 PracticalNo.17 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Create a facebook registration page with proper validation using Tkinter. On submit redirect a control on log-in page. To log-in into his/her account, user has to provide log-in credential. On submitting log-in credential another window should be opened with welcome message using user name. To make aware of Tkinter GUI programming with container widget. Container widget. 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO5:use Tkinter module to create widgets. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly PageNo.420-423 1. Which other container is available to solve this problem? 2. Explain the methods of to plevel container. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page18 PracticalNo.18 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. CreateatexteditorusingTkinter.Basicfunctionalityshouldbeaddedsuch as bold, Italic, underline. To make aware of texteditor classin Tkinter. Widget fundamentals. 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO5:useTkinter module to create widgets. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly PageNo.426-432 1. Write a bouttextwid get methods. 2. How marks and tags a reuseful in texteditor? Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page19 PracticalNo.19 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved 060010502–Programming in Python Enrollment No. Create a window which contains a menu with new and exit options, on click Of new option a window which contains following menu and options should be open, on click of particular color option form background should be change, as well as cursor shape should be change and on click of exit window should be close. Color Menu Red, Green, Blue, Yellow, Exit. To make aware of menubar with Tkinter. Widget fundamentals, container widget. 1Hour PEO2: To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO5:useTkinter module to create widgets. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly PageNo.423-426 1. Explain menu specific methods. 2. How many menu entries are available ? Define each. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms.Mitali Dixit Page 20 PracticalNo.20 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Using Tkinter, write a menu driven program to insert, update and delete Data of students, and generate mark sheet of particular student in appropriate format. To make aware of database operations in python. DBAPI 2.0 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO6:use and explore DBAPI module to work with database using Python. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly PageNo.292-301 1. ComprehendDBAPI2.0. 2. Give example of connection object method. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 21 PracticalNo.21 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Create a python program to take a file upload control , upload image file and display it with appropriate height and width, crop the picture and save that picture with other name. To make aware of upload of file and image file contol. File control use. 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO4: develop program to perform operations on file using OS module. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly PageNo.216-264 1. Is Image cropping Possible using File Upload? Justify your response. 2. Write a basic code to Transforming Image. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 22 PracticalNo.22 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. write a python code that will perform celcius to fernhit converter.(Use of frame and Tkinter is compulsory) To make aware of frame and Tkinter Thinter and Frame use 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO5: use Tkinter module to create widgets. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly PageNo.406-450 1. Can we create transperant icon using Tkinter if so Justify it. 2. How to center window on screen in Tkinter. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 23 PracticalNo.23 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved 060010502–Programming in Python Enrollment No. Using string methods, write expressions that do the following: a. Capitalize 'boolean'. b. Find the first occurrence of '2' in 'C02 H20'. c. Find the second occurrence of "2" in 'C02 H20'. d. Determine whether 'Boolean' begins with a lowercase. e. Convert "MoNDaY" to lowercase letters and then capitalize the result. f. Remove the leading whitespace from " Monday". To make aware of string modules and regular expression. String methods. 1Hour PEO2: To provide quality practical skill of tools and technologies to solve PO(s) to be achieved industry problems. CO(s) to be achieved software development. Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 PO6:Ability to use the techniques, skills and modern tools as necessary for CO3: develop program to solve pattern matching problem using re module. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page no.186-212 1. Compare and contrast Split and Translate Function. 2. What is the usage of swapcase function. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 24 PracticalNo.24 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Write a program that allows the user to choose a file and then shows the picture twice. To make aware of file programs. File control use. 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO4: develop program to perform operations on file using OS module. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page No.216-264 1. How to upload an Image file and save it in directory using Fileupload. 2. Is there a way to send a file using POST from a Python script? Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 25 PracticalNo.25 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Create a list of temperatures in degrees Celsius with the values 25.2,16.8, 31.4, 23.9, 28, 22.5, and 19.6, and assign it to a variable called temps. Using one of the list methods, sort temps in ascending order.Write a for loop to convert all the values from temps_in_celsius into Fahren-heit, and store the converted values in a new list temps_in_fahrenheit. The list temps_in_celsius should remain unchanged. To make aware of list data type and its methods. List data type 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page No: 56-57 1. Two list methods with examples. 2. Compare and contrast append and extend method. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 26 PracticalNo.26 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Suppose the file alkaline_metals.txt contains this: 4 9.012 12 24.305 20 20.078 38 87.62 56 137.327 88 226 Write a for loop to read the contents of alkaline_metals.txt, and store it in a nested list with each element of the list contains the atomic number and atomic weight for an element. (Hint: use string.split.) To make aware of file operations. File use. 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO4: develop program to perform operations on file using OS module. Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page No.216-264 1. What is __init__.py for? 2. What is writelines() and readlines() methods in Python Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 27 PracticalNo.27 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Write a function named different that has two parameters, a and b. The function should return True if a and b refer to different values and should return False otherwise. To make aware of python functions and its parameters. Writing function definition, calling of a function and type of parameters passing. 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page No.70-75 1. write a list comprehension that will create a deck of cards. Each element in the list will be a card, which is represented by a list containing the suit as a string and the value as an int. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 28 PracticalNo.28 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Write a function called find_dups that takes a list of integers as its input argument and returns a set of those integers that occur two or more times in the list. To make aware of list data type and its methods. List data type 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page No: 56-57 1. write a function that adds two matrices together using list comprehensions. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 29 PracticalNo.29 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 060010502–Programming in Python 2015 Enrollment No. Write a function called dict_intersect that takes two dictionaries as arguments and returns a dictionary that contains only the key/value pairs found in both of the original dictionaries. To make aware python function Writing function definition, calling of a function and type of parameters passing. 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page no.70-75 1. Write down two directory functions with example. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 30 060010502–Programming in Python PracticalNo.30 Practical Problem Objective(s) Pre-requisite Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must contain Nature of submission References for solving the problem Post Laboratory questions 2015 Enrollment No. Write three functions that compute the mean, median, and mode, respectively, of a list of values. To make aware of list data type and its methods. List data type 1Hour PEO2: To provide quality practical skill of tools and technologies to solve industry problems. PO6:Ability to use the techniques, skills and modern tools as necessary for software development. CO1: design and implement programs using Python programming language Program and Output Handwritten Martelli Alex, Python in a nut shell, O Reilly Page No: 56-57 1. Difference between function and modules. Assessment Solution achieves the desired Viva objective(s) Out of Marks 10 5 Secured by the student Signature Date Ms. Mitali Dixit Page 31