Question: D Fourth Character Write code that stores the fourth character of a string stored in the variable text into a variable named fourth _ char.
D
Fourth Character
Write code that stores the fourth character of a string stored in the variable text into a variable named fourthchar. Assume that text already has a value and that it is at least four characters long.Test Results: You are using a variable named fourthchar. The variable is set to h when the text is 'Python'.x The variable does not get set to the correct character when the text is 'The rain in Spain'.x The variable does not get set to the correct character when the text is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
