Quote:
Need solutions in Python for these 4 problems
No, you need to solve the problems.
You are learning and homework is training, nobody can do it for you.
Do you think Usain Bolt asked someone to train for him when he was a beginner ?
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
Any failure of you will help you to learn what works and what don't, it is called 'trial and error' learning.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.
Try to solve the requirements and if you have a difficulties show your work and tell us what is your exact problem.
Look at this, it may you to understand what you have to do:
input : height
....a
...aaa
..aaaaa
.aaaaaaa
aaaaaaaaa