21.Write a Python program to get the last element of a list using negative indexing.
22.Write a Python program to sort a list in descending order. Write a Python program to check if a list is empty or not
23.Write a Python program to check if two sets have any elements in common. 24.Write a Python program to convert a tuple to a list. 25.Write a Python program to check whether a number is Palindrome or not. 26.fruits = ["apple", "banana", "cherry", “guava”, “pumpkin”]. Using membership operator, determine whether “Mango” is included in the given list.
27.Write a Python program that takes two integers as input and performs bitwise AND, OR, and XOR operations on them.
28.Write a function that checks if a number is a perfect square.
29.Write a function that checks if a string is a valid palindrome considering only alphanumeric characters and ignoring cases.
30.Write a function that counts the number of vowels in a given string.
Post a Comment