Question: plz answer these short question in python language thanks. Q1- Assume that name is a variable of type String that has been assigned a value.
plz answer these short question in python language thanks.
Q1- Assume that name is a variable of type String that has been assigned a value. Write an expression whose value is the first character of the value of name. So if the value of name were "Smith" the expression's value would be 'S'.
Q2-Write an expression that whose value is the fifth character of the String name.
Q3-Given the String variable name, write an expression that evaluates to the third character of name. and
Q4-Given a String variable named sentence that has been initialized, write an expression whose value is the the very last character in the String referred to by sentence.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
