Robotics & Artificial Intelligence
Write a program to accept a symbol from the user and draw the following pattern containing that symbol.
Input: Enter the symbol: *
Output:
*
* *
* * *
* * * *
Python Control Flow
1 Like
Answer
sym = input("Enter the symbol: ")
for i in range(1, 5):
print((sym + " ") * i)Output
Enter the symbol: *
*
* *
* * *
* * * *
Enter the symbol: #
#
# #
# # #
# # # #
Answered By
1 Like
Related Questions
List different types of autonomous vehicles. Explain one type.
Discuss three benefits of integrating technology in medical and healthcare.
Computer vision enables computers and machines to perceive, analyse, and extract meaningful information from visual data, such as photos and videos. Name any two applications of computer vision. Also, define each type.
Based on the following picture, answer the given questions.

a. Identify the type of joint.
b. Briefly explain this type of joint.