Transfer Statements in Python

Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python

Program 1

# break , continue,pass

# for i in range(1,51,1):
#     if(i==11):
#         break
   
#     print(i)
    
# i=1
# while(i<=50):
#     if(i==11):
#         break
#     print(i)
#     i=i+1

# Searching Program
# mylist=[31,2,3,6,7,8,6,66,6,11,9,6]
# s=int(input("Enter a number"))
# f=0
# for m in mylist:
#     if(m==s):
#         f=1
#         break

# if(f==1):
#     print("Searching success")    
# else:
#     print("Searching not success")    

# for i in range(1,11,1):
#     if(i==5):
#         continue
#     print(i,end=" ")
#     print(" Data Flair ")

# Pass
# n=int(input("Enter a number"))
# if(n>50):
#     pass
# else:
#     print("Hello Dataflair")    

for i in range(1,11,1):
   pass
else:
    print("Bye Bye")

 

Did you know we work 24x7 to provide you best tutorials
Please encourage us - write a review on Google

courses

DataFlair Team

DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.

Leave a Reply

Your email address will not be published. Required fields are marked *