Programming Assignment 2
Programming Assignment 2
Shreyan Saha
September 2023
1. Accept two words as input and print the two words after adding a space
between them.
3. The police are trying to track a criminal based on the evidence available
at a crime site. Their main clue is a vehicle’s damaged number plate.
Only the string TN07 is visible. The format of the registration number
is AA00AA00, where the first two letters are alphabets, next two are
numbers, next two are again alphabets followed by two numbers at the
end. A number plate is picked from a database of registration numbers
and is given to you as input. Your task is to determine if this could belong
to the criminal or not. Print ”True” if the number plate contains TN07
and ”False” otherwise.
4. Accept five words as input and print the sentence formed by these words
after adding a space between consecutive words and a full stop at the end.
5. Take a string as input from the user and print ”Odd” if the length of
the string is an odd number and ”Even” if the length of the string is an
even number.