for loop in python | Python for Beginners

  Рет қаралды 17,616

Coding With Sagar

Coding With Sagar

Күн бұрын

Apply for LIVE 45 Days of Python (AI Oriented) Batch - codingwithsaga...
for loop practice questions with answers - codingwise.in/...
Get 700+ Ready-made Projects Code👇
codingwithsaga...
Welcome to our comprehensive tutorial on mastering 'For Loops' in programming! Whether you're a beginner eager to dive into the world of coding or someone looking to refresh your knowledge, this video is your ultimate guide.
👨‍💻 What You Will Learn:
Basics of For Loops: Understand the fundamental concept of for loops and how they operate within different programming languages.
Syntax and Structure: Dive deep into the syntax of for loops, including initialisation, condition, and increment/decrement operations.
Practical Examples: Follow along with hands-on examples in multiple programming languages, including Python, Java, and JavaScript, to see how for loops are applied in real-world scenarios.
Common Mistakes and How to Avoid Them: Learn about the most common pitfalls beginners face when working with for loops and expert tips on how to avoid them.
Advanced Techniques: Explore advanced uses of for loops, including nested loops and loop control statements, to take your coding skills to the next level.
💡 Why This Video?
Our tutorial is designed with clarity and simplicity in mind, ensuring that you grasp the concept of for loops thoroughly. By the end of this video, you'll be confident in using for loops in your programming projects, improving your coding efficiency and problem-solving skills.
🔑 Access the Python Programming for Beginner Series
1- Introduction to Python - • What is Python | Pytho...
2- Comments in Python - • Comments In Python | P...
3- Print( ) in Python - • Print() function in Py...
4- Variables in Python - • Variables in Python | ...
5- Data-types in Python - • Data-types In Python |...
6- String, List & Tuple In Python - • Part-2 String, List & ...
7- Dictionary In Python - • Dictionary in Python |...
8- Input function in Python - • input ( ) function in ...
9- String Manipulation In Python - • Master String Manipula...
10 - Operators In Python Part-1 - • Operators In Python | ...
11- Operators In Python Part-2 • Operators In Python | ...
12- Conditional Statements In Python - • Conditional Statements...
13- Loops In Python - • Loops In Python | Pyth...
14- for loop in python - • for loop in python | P...
🔑 Access the Python Project for Beginner Series:
1- Image Slideshow Project - • Build a Python Image S...
2- QR Code Generator to Accept Payment - • Accept Payments with P...
3- Text Editor App - • Build a Text Editor Ap...
4- Automate your Task - • Goodbye Manual Search,...
5- Create a Digital Clock - • Build a Digital Clock ...
6- Tic-Tac-Toe Game - • Tic Tac Toe Game In Py...
7- Rock Paper Scissor - • Rock Paper Scissor Gam...
8- Rent Calculator App - • Rent calculator in pyt...
Connect with us:
Instagram - / codingwithsagar
Telegram - telegram.me/sa...
KZbin - / @codingwithsagarcw

Пікірлер: 43
@Harshitpanchal-h9l
@Harshitpanchal-h9l 2 ай бұрын
thank you sir for this playlist the homework is, N = int(input("Enter starting number: ")) n = int(input("Enter ending number: ")) num = int(input("Enter the divisor: ")) for i in range (m, n): if i % num == 0 print(i)
@vineetashankar4915
@vineetashankar4915 3 ай бұрын
at 9:04 Why did we used m+=1 instead of for i in range(m,n): print(i)
@Learn3DMasterclass
@Learn3DMasterclass 2 күн бұрын
same question there is no need to do m+=1, simply print(i) and the result will be easy to understand.
@himaniupreti_1626
@himaniupreti_1626 6 ай бұрын
m = int(input("Enter the number = ")) n = int(input("Enter the end number = ")) d = int(input("Enter the divisor = ")) for i in range (m,n): if i%d ==0: print(i)
@hrx_vibs
@hrx_vibs 6 ай бұрын
Ye sahi hai
@parveenkooner71
@parveenkooner71 3 ай бұрын
Brother, your concept of teachings so amazing for beginners like me. You explain every step deeply without leaving any doubt in learner's mind. Thank you for sharing such content. You are truly blessings for those who don't have prior knowledge or experience and looking for job opportunity.
@ashachordia7700
@ashachordia7700 9 ай бұрын
Bro plz upload c++ playlist too.😊❤
@GohilJaydip_31
@GohilJaydip_31 22 күн бұрын
def printing(): s = int(input("enter the start number :")) e = int(input("enter the start number :")) d = int(input("enter number you want to check by devisible :")) if s>e: print("starting number is greater then ending number that's why number will print in decreased order") else: for i in range (s,e): if i % d == 0: print(i) while True: printing() user_in = input("Do you want to exit the program? Y/N: ").strip().upper() if user_in == "Y": print("Program is exiting.") break
@OnlyBicepsLover
@OnlyBicepsLover 7 ай бұрын
Because bro (m) humara starting point hai to humne print bhi (m) hi Kiya hai to o hi print hoga na . Or rhi m+=1 ki baat to serial waise aane ke liye o liya hai , agr tume o nhi chahiye to print (i) kro tumara doute solve ho jayega ❤
@junwal-z8q
@junwal-z8q 6 күн бұрын
n = int(input("Enter the statring number:")) m= int(input("Enter the ending number:")) k = int(input("suggest the number for divisible:")) j=int(input("Enter the value which is not divisible:")) for i in range(n,m): if i % k==0 and i % j !=0: print(i)
@sagensoren55
@sagensoren55 2 ай бұрын
Very well explained sir
@mdjawedsiddiqui539
@mdjawedsiddiqui539 6 ай бұрын
Your teaching skill is really impressive
@abhis-z4n
@abhis-z4n 3 ай бұрын
m = int(input('Enter first number: ')) n = int(input('Enter second number: ')) if m >= n: print("Error: First number should be less than second number.") else: for i in range(m, n + 1): print(i)
@AbdulAziz-em5hf
@AbdulAziz-em5hf 4 ай бұрын
Great teach bro ,thanks for good explanation
@unsolve_writer1245
@unsolve_writer1245 4 ай бұрын
please make a proper road map video for Python... career paths
@umeshranerane3671
@umeshranerane3671 6 ай бұрын
Life saver mr.sagar❤
@tegbirsingh4171
@tegbirsingh4171 4 ай бұрын
Thank you sir 🙏🏻🙏🏻🙏🏻
@SadafSaeed-mv1kv
@SadafSaeed-mv1kv 5 ай бұрын
Great sir
@Learn3DMasterclass
@Learn3DMasterclass 2 күн бұрын
there is no need to do m+=1, simply print(i) and the result will be easy to understand. but I think Sir you have a reason to do so and I want to know whats the reason of behind this. please repy if possible?
@Onlystatus699
@Onlystatus699 9 ай бұрын
Python ke big project karavo please sir
@ThotaAnurag
@ThotaAnurag 7 ай бұрын
Bhai for Q1 What will be the output if the condition is given as: For i in range(m,z): Print(i) Nd what is the difference in the intro file where just print(i) gave the incremental output. But here in Q1 you had to give Print(m) and increment it m+=1. 8:20
@OnlyBicepsLover
@OnlyBicepsLover 7 ай бұрын
Because bro (m) humara starting point hai to humne print bhi (m) hi Kiya hai to o hi print hoga na . Or rhi m+=1 ki baat to serial waise aane ke liye o liya hai , agr tume o nhi chahiye to print (i) kro tumara doute solve ho jayega ❤❤
@yo.vikrant
@yo.vikrant 9 ай бұрын
Bhai video roj aayegi na?
@KshitijJoshi-w6n
@KshitijJoshi-w6n 9 ай бұрын
Bro kya ye sikhne se hum offline first person shooting mobile game bana sakte hai??
@codingwithsagarcw
@codingwithsagarcw 9 ай бұрын
Uske liye python + libraries seekhni padegi
@KshitijJoshi-w6n
@KshitijJoshi-w6n 9 ай бұрын
@@codingwithsagarcw ok bro..Aur kuch nhi sikhna??
@think_grow21
@think_grow21 9 ай бұрын
Research and business analytics ke liye Python kitna imp hai bhai?
@codingwithsagarcw
@codingwithsagarcw 9 ай бұрын
Important h bhai, python har jagah h
@saeemsara7259
@saeemsara7259 8 ай бұрын
fist time commenting on any learning video, i’m from pakistan. apki video daikh k boht acha laga. itna easy and detailed. thanks alot. may god bless you for your efforts
@dhruvaggarwal7152
@dhruvaggarwal7152 4 ай бұрын
Bhai aap print mei "i" kyu nahi le rahe ho. a = int(input("Enter start number = ")) b = int(input("Enter end number = ")) # z = b + 1 for i in range(a, b, +1): print(i) Ye dekho.
@aseerahnaf7713
@aseerahnaf7713 9 ай бұрын
Pls daily video 😢😢😢
@ravikambala06
@ravikambala06 3 ай бұрын
👌👌👌👌
@sharukhsaifi5128
@sharukhsaifi5128 9 ай бұрын
Functions ki video upload kro bro
@nomanshabeer3735
@nomanshabeer3735 7 ай бұрын
m = int(input("Enter the number of = ")) n = int(input("Enter the number of = ")) c = int(input("Divide number = ")) for i in range(m, n,): if i % c == 0: print(i) Assignments complete
@Krishna-oq8jn
@Krishna-oq8jn 4 ай бұрын
Put n+1 as user don't know the code
@soheltechedt
@soheltechedt 3 ай бұрын
m = int(input("enter your start number ? ")) n = int(input("enter your end number ")) z = n +1 for I in range(m,z, 1): print(I)
@CakeAur
@CakeAur 2 ай бұрын
same thought
@kaurkaur537
@kaurkaur537 7 ай бұрын
Mera same program run nhi hora
@ashishmishraritiktechnolog2733
@ashishmishraritiktechnolog2733 2 ай бұрын
Tumhara laptop bekar hoga😂
@karunapatidar1234
@karunapatidar1234 Ай бұрын
Qute boy 😂
@ImPakistani-h2h
@ImPakistani-h2h Ай бұрын
m=int(input('enter start num=')) n=int(input("enter end num=")) num=int(input('enter the divisor=')) for i in range(m,n): if(i%num==0) print(i)
@faith2744
@faith2744 5 күн бұрын
m=int(input("enter start number")) n=int(input("enter end number")) o=int(input("enter divide number")) for i in range(m,n): if i %o==0: print(i)
Printing Patterns | Nested loop in python | Python for beginners
12:54
Coding With Sagar
Рет қаралды 52 М.
For Loop In Python | 10 Problems Solved & Explained | Python for Beginners
36:09
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
How I Would Learn Python FAST (if I could start over)
12:19
What is For Loop in Python | Data on Repeat | Python Tutorials
18:43
For Loops: Understanding Execution Flow | Python, Visually Explained
7:23
Visually Explained
Рет қаралды 1,4 М.
Loops In Python | Python for Beginners | #pythonprogramming
15:22
Coding With Sagar
Рет қаралды 26 М.
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 3,3 МЛН
👩‍💻 Python for Beginners Tutorial
1:03:21
Kevin Stratvert
Рет қаралды 3,5 МЛН
What Makes Python the #1 IT Skill in Demand Today | Sagar Chouksey
13:48
Coding With Sagar
Рет қаралды 21 М.
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 1 МЛН
Nested Loops with Examples in Python | Python Tutorial in Hindi 15
17:59
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 267 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН