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

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

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!