Python Tasks
Python Tasks
2. Write a program that takes two numbers from the user and performs
addition, subtraction, multiplication, and division operations.
4. Write a program that prints the first 'n' numbers of the Fibonacci
sequence.
5. Write a function that takes a string input and counts the number of
vowels and consonants in it.
8. Write a function that takes a number and returns the sum of its digits.
9. Write a program that reads the contents of a text file, processes the
data (e.g., counting lines or words), and writes results to another file.