Question: Write a function that takes a string and an integer ( n ) as input. The program will convert the final n characters to uppercase.
Write a function that takes a string and an integer as input. The program will convert the final characters to uppercase. For example 'BallOfStrinG' with
should return 'BallOfSTRING'.
In : def stringconvertstring n:
In : assert stringconvertBallofStrinG 'BallOfSTRING'
assert stringconvertIlovemaps 'IloveMAPS'
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
