Question: Question 5 Write a python program which accepts a string from user If the length of th input is smaller than 2, print error Else,
Question 5 Write a python program which accepts a string from user If the length of th input is smaller than 2, print "error" Else, change the letter before the last to * *Exemple: Input: "abcd" Output "ab*d" Question 6 Create a class classroom with course name and number students instance attributes, and one method add student which will add one student to the number students. Create an instance with course name='python' and number students 30 Add one student by calling the method add student)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
