Programming in Python I Loops - for loop, break & continue I Session - 7 | Hindi
In this session, we have discussed:
revised while loop
revised break, while-else
for loop
range()
continue
for-else
Some Questions you can try :
Q1: WAP to input n and print all perfect squares till n (n inclusive).
Q2: WAP to input a string and check whether it is a Palindrome or not using for loop.
Q3: WAP to input n and print whether n is prime or not.
Q4: WAP to input n and print the following pattern:
n = 5
1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
5 4 3 2 1 2 3 4 5
4 3 2 1 2 3 4
3 2 1 2 3
2 1 2
1
Follow me on my social handles:
Bio link 🔗 https://param302.bio.link
Twitter 🔗 / param3021
LinkedIn 🔗 / param302
Github 🔗 https://github.com/Param302
Kaggle 🔗 https://kaggle.com/param302
On this page of the site you can watch the video online Programming in Python I Loops - for loop, break & continue I Session - 7 | Hindi with a duration of hours minute second in good quality, which was uploaded by the user Parampreet Singh 07 February 2023, share the link with friends and acquaintances, this video has already been watched 1,156 times on youtube and it was liked by 25 viewers. Enjoy your viewing!