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.![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1VOITOYs3WpXtW-MyDXxPfuVIcXeKVYY-xNPF0c9a-C444O5T6WDqcJiIToCnTca12wSRPTgLO-Tm9Xicbnt5tC3TXF9Qocj2IjVqq072_EpAjOHtPbKYCLiKxS7VS8ac76OOF3qxEvNz1EkoSeUB_0wMlD5nz4dpwpsD-gzz4ViI6eSfILTLooZK204/w640-h170/27.png)
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