ASSIGNMENT
1. WAP to check if the integer is palindrome or not.
2. Consider a string input and check whether the ASCII value of first
character is even or odd.
3. Consider a list input, print the values at even index if the length is odd
and print values at odd index if length is even.
4. Consider two inputs and check whether it is pointing towards same
memory location or not.
5. Consider a tuple of length two and check whether the tuple is
homogenous or not.
6. WAP to check whether the number is positive or negative.
7. WAP to check whether the given string is keyword or not
8. Consider a character input and if it is a upper case print the 1st digit of
it’s ASCII number, if it is a lower case then print its last digit of ASCII,
print the remainder when divided by 3 if it is a number, print the
reversed string if it is a special character.
9. WAP consider a string and if the last character’s ASCII value is between
50-60 ,print the string as it is, if the ASCII value is in between 61-75
print the character when added 5 to its ASCII value. If it’s between 76-
97 then print the concatenated output with first and last character of
given string (‘JAAAM’ → ASCII value of ‘M’ is 77 output➔ ‘JM’). If it
is other than those then print the reversed string.
10. WAP to check the given points are lying in which quadrant (2 number
inputs).(1,2,3,4 quadrants).