Write a Python program to swap the values of two variables using a temp variable
Write a Python program to swap the values of two variables using a temp variable
Write a Python program to swap the values of two variables using a temp variable
2. Create a variable x with value 5. Double its value and print the result.
3. Convert the integer 100 into a string and print its type.
4. Write a Python program to check if a number entered by the user is even or odd.
5. Create a program that checks if a year entered by the user is a leap year.
6. Write a Python script to compare three numbers and print the largest one.
10. Write a Python program to find the factorial of a number using a while loop.
11. Create a program that keeps asking the user for a password until they enter "12345"
12. Write a Python script to calculate the sum of all even numbers between 1 and 20 using a while loop.
14. Create a program to count the number of vowels in the string "hello world".
15. Write a program to calculate the sum of all numbers divisible by 3 and 5 between 1 and 100.