Soft Computing Lab
Assignment 1 Assignment on basic Python 1. Write a program in python to find all the prime numbers from 1 to 100 2. Write a program in python to check whether a number is ARMSTRONG or not. 3. Write a program in python to calculate greatest common divisor of a number 4. Create a list in python for food items: perform the following tasks on the list a) Append a new item “Daal Makhni” at the end of the list b) Add a new item in the 4 th position c) Delete last two items from the list d) Sort the list according to alphabetical order e) Traverse the list and print f) Print the list selectively(Every alternative item) g) Print the list in reverse order 5. Create a nested list of students having different lists for different class tests (class test 1 and class test 2). Print the marks of the students in ascending order. 6. Create a dictionary in python for displaying information of employee (Emp ID, Emp name, Dept, Designation, Salary). Do the following tasks with the diction