If you come across any unexpected problems, check the VibrantNotes Status for help. Check
Relayed
Loading Scripts...

Top 15 Python Questions for Class 11

Top 15 python questions for class 11 project.
Python
Question.1 Write a Python program to print the following star pattern:
'''
*
**
***
****
*****
'''

# Solution

for i in range(1,6): for j in range(1,i+1): print("*", end="") print()
Question.2 Write a Python program to print the following star pattern:
'''
    *
   **
  ***
 ****
*****  
'''

# Solution

for i in range(1,6): for j in range(1,6-i): print(" ", end="") for k in range(1,i+1): print("*", end="") print()
Question.3 Write a Python program to print the following star pattern:
'''
    *
   ***
  *****
 *******
*********
'''      

# Solution

for i in range(1,6): for j in range(1,6-i): print(" ", end = "") for k in range(1, (2*i)): print("*", end = "") print()
Question.4 Write a Python program to print the following star pattern:
'''
*****
 ****
  ***
   **
    * 
'''

# Solution

for i in range(1,6): for j in range(0, i-1): print(" ", end = "") for k in range(1,6-i+1): print("*", end = "") print()

Getting Info...

1 comment

  1. Thankyou
We value your input but ask that you refrain from spreading hate or disclosing sensitive data. Your comment will be carefully reviewed by our admin team before it appears.
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.