Question: CHALLENGE ACTIVITY 3 . 1 . 2 : String basics. 5 4 7 7 2 6 3 5 1 2 3 3 6 . 9

CHALLENGE
ACTIVITY
3.1.2: String basics.
5477263512336.9329y7
Jump to level 1
Perform the following tasks:
Read string fav_color, and integers char_index1 and char_index2 from input.
Assign char1 with the character at index char_index1 of fav_color.
Assign char2 with the character at index char_index2 of fav_color.
Click here for example
Note: Assume char_index 1 and char_index 2 are greater than 0 and less than the length of fav_color.
1
I'' Your code goes here '"'
print('Color chosen: '+ fav_color)
print('Selected characters: '+ char1+','+ char2)
 CHALLENGE ACTIVITY 3.1.2: String basics. 5477263512336.9329y7 Jump to level 1 Perform

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!