0% found this document useful (0 votes)
3 views

conditionalassignment

The document outlines a series of programming assignments that involve various tasks such as checking for palindromes, evaluating ASCII values, manipulating lists and tuples, and determining memory locations. Each task requires specific input types and conditions, including string manipulation and geometric quadrant identification. The assignments are designed to test fundamental programming skills and understanding of data types in Python.

Uploaded by

Amit Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

conditionalassignment

The document outlines a series of programming assignments that involve various tasks such as checking for palindromes, evaluating ASCII values, manipulating lists and tuples, and determining memory locations. Each task requires specific input types and conditions, including string manipulation and geometric quadrant identification. The assignments are designed to test fundamental programming skills and understanding of data types in Python.

Uploaded by

Amit Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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).

You might also like