Question: Write a python code that will prompt: a) The second character of the string name (using positive index) and the seventh character of string
Write a python code that will prompt: a) The second character of the string name (using positive index) and the seventh character of string name (using negative index) b) Use string slices to prompt from the first to the 10th character. 2. write a python code that will request a user to enter an integer from the computer keyboard and save that integer in a variable. After it, use assignment operators divide the integer with 7 and return the quotient and prompt result as: The quotient of number with 7 is 3. write a python code that will ask the user to enter two animals, then the program will concatenated both animals and save the length of the concatenated word. 4. Given: Name = "Queensborough community college" write a python code that will replace 'mm' with '%'
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
Here are the Python code snippets for each of your tasks 1 Prompt for Specific Characters and Slicin... View full answer
Get step-by-step solutions from verified subject matter experts
