Aditya Python
Aditya Python
Code:
Output:
Code:
Output:
Problem 3: To accept a numeric digit from keyboard and display it in words
Code:
Output:
Code:
Output:
Code:
Output:
Code:
Output:
Problem 7: To generate a Fibonacci numbers series
Code:
Output:
Code:
Output:
Code:
Output:
Problem 10: Write a function that returns the results of addition, subtraction, multiplication and division
Code:
Output:
Problem 11: To calculate the factorial values of the number using recursion
Code:
Output:
Problem 12: To create a lambda function that returns a square value of the given function
Code:
Output:
Problem 13: To create a python module for finding a factorial of a given number
Code:
After Saving this file you can call the function fact from another file after importing test.py
Output:
Problem 14: To display the elements of a list in reverse order
Code:
Output:
Problem 15: To access each element of a string in forward and reverse order using For and While loop
Code:
Output:
Problem 16: To sort a group of strings in alphabetical order
Code:
Output:
Problem 17: To read all strings from a text file and display them
Code:
File:
Output:
Problem 18: To append data to an existing file and then displaying the entire file
Code:
File:
Output:
Code:
File:
Output: