Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Section 1 -- Strings -- 7 points Write a small program that inputs a string from the keyboard and then prints the following: (1 pt)
Section 1 -- Strings -- 7 points Write a small program that inputs a string from the keyboard and then prints the following: (1 pt) A value (True or False) that indicates whether the string contains only letters. (1 pt) A value (True or False) that indicates whether the string contains only digits. (1 pt) A value (True or False) that indicates whether all of the letters in the string are lowercase. (1 pt) The string with the first 2 and last 2 characters cut off. (1 pt) The list of words in the string. (2 pts) The second half of the string, as defined by length, followed by the first half. If the length of the string is not an even number, you may leave the odd character in whichever half you prefer. Hint: you will probably have to cast the result of a calculation into an integer, using the int() function, to make this work. [ ]: N
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started