JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

SCRIPTING LANGUAGES LAB

M.Tech I Year I Semester (R19)

Prerequisites

Students should install Python on Linux platform.

List of Programs:

Part: I Preliminary Exercises:

  • 1. To demonstrate different number data types in Python.
  • 2. To perform different Arithmetic Operations on numbers in Python.
  • 3. To create, concatenate and print a string and accessing sub-string from a given string.
  • 4. Write a python script to print the current date in the following format “Sun May 29 02:26:23 IST 2017”
  • 5. To demonstrate working with dictionaries in python.
  • 6. To find largest of three numbers.
  • 7. Write a Python program to construct the a pattern, using a nested for loop.
  • 8. Write a Python script that prints prime numbers less than 20.
  • 9. To convert temperatures to and from Celsius, Fahrenheit. Part: II:
  • 10. To create, append, and remove lists in python.
  • 11. To demonstrate working with tuples in python.
  • 12. To find factorial of a number using Recursion.
  • 13. Write a Python class to implement pow(x, n)
  • 14. Write a script named copyfile.py. This script should prompt the user for the names of two text files. The contents of the first file should be input and written to the second file.
  • 15. Write a program that inputs a text file. The program should print all of the unique words in the file in alphabetical order.
  • 16. Write a Python class to find the frequency of each alphabet (of any language) in the given text document. R19 M.TECH. DIGITAL SYSTEMS AND COMPUTER ELECTRONICS M.TECH.- I YEAR- II SEMESTER DIGITAL SYSTEMS & COMPUTER ELECTRONICS

Loading Question Papers

Fetching data from database...