Original 1451565458 Original 1450339154 PythonAssignments For Practice
The document contains 11 programming assignments: 1) convert Celsius to Fahrenheit, 2) check if a string is a Python keyword, 3) swap two variables, 4) check if a number is prime, 5) perform arithmetic operations, 6) find the sum of integers in a list, 7) compare input() and raw_input() functions, 8) check if a year is a leap year, 9) find the largest of three numbers, 10) display employee details using a dictionary, and 11) display the Fibonacci series from 1 to 10. Most assignments require the use of functions or other Python concepts.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
43 views1 page
Original 1451565458 Original 1450339154 PythonAssignments For Practice
The document contains 11 programming assignments: 1) convert Celsius to Fahrenheit, 2) check if a string is a Python keyword, 3) swap two variables, 4) check if a number is prime, 5) perform arithmetic operations, 6) find the sum of integers in a list, 7) compare input() and raw_input() functions, 8) check if a year is a leap year, 9) find the largest of three numbers, 10) display employee details using a dictionary, and 11) display the Fibonacci series from 1 to 10. Most assignments require the use of functions or other Python concepts.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Assignments for Practice -Set1
1. Write a program to convert Celsius To Fahrenheit?
Note: Use input function only to read the input from the user. 2. Write a programto find the given string is a keyword or not in python? 3. Write a program to swap two variables? 4. Write a program to find wether given no is Prime or Not?. 5. Write a program to perform all arithmetic operations on two given numbers. 6. Write a program to find the sum of integers in the given list? Note:Initialize the list with 10 integral elements inside the program. 7. Write a program, which differenciates the input() and raw_input() functions in Python? Hint:Use type() function on the data, read as input from the above functions. 8. Write a program to check the given year is leap year or not? Note: Use the function concept for implementation of the leap year logic. Function shoud receive the year as parameter. 9. Write a program to find the largest among three numbers Note: Use the function concept for implementation of the logic Function shoud receive the three no's as parameter. 10. Write a program to display the employee details(Name,Salary,Dept,EmpId)? Note: Requires to use the dictionary concept to store and display the employee Record. 11. Write a program to display the fabinacci series between 1-10? Note:Use the concept of for loop with range() function .