This is the Assignments submission repos
- Takes two numbers as input from the user.
- Performs basic mathematical operations to these two numbers.
- Displays the results of each operation on the screen.
- Takes a user's first and last names as the input.
- Concatenates the first and last names into a full name.
- Prints a personalized greeting message using the full name.
- Takes an integer input from the user.
- Checks whether the number is even or odd using an if-else statement.
- Displays the result accordingly.
- Uses a for loop to iterate over numbers from 1 to 50.
- Calculates the sum of all integers in this range.
- Displays the final sum.
- Defines a function named factorial that takes a number as an argument and calculates its factorial using a loop or recursion.
- Returns the calculated factorial.
- Calls the function with a sample number and prints the output.
- Asks the user for a number as input.
- Uses the math module to calculate.
- Displays the calculated results.
- Opens and reads a text file named sample.txt.
- Prints its content line by line.
- Handles errors gracefully if the file does not exist.
- Takes user input and writes it to a file named output.txt.
- Appends additional data to the same file.
- Reads and displays the final content of the file.