Python Tutorial

Here you can learn about the basics of Python for free.

Saturday, June 8, 2019

Pattern programs














Q1. Program that prints the following pattern without using any nested loop.
#
# #
# # #
# # # #
# # # # #
Ans..

Q2 .Program to print the following pattern by using nested loop..
*
* *
* * *
* * * *
Ans..


Q3 . Program to print following patterns.
(i)
    * *
    * *
    * *
(ii)
    * * *
    * * *
    * * *
Ans.