Coroutines In Python | Python Tutorials For Absolute Beginners In Hindi #77

preview_player
Показать описание


Best Hindi Videos For Learning Programming:

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

Bhai logo aap logo ka new year resolution kya hai?

CodeWithHarry
Автор

Harry Bhai...I have learned python from scratch after going through your Python Playlist. Just a small request- Can you please make videos of Python on Data Structures and Algorithm?.Thanks!

RahulKumar-rukc
Автор

Harry bhai mai mechanical engg kr rha hu aapse python sikh kr bohot easy lg rha hai aue interest bhi aa rha hai python mai...Aapko bhi bohot mehanat krni pdti hogi video banane ke liye....Thankyu so much bhai

akshayukhalkar
Автор

I accept the challenge
*Edit*: solution

# Quick quiz solution

def nameInLetters():
letterFile = open("letters.txt")
letterContent = letterFile.read()

while True:
text = (yield)
first_letter = text[0].lower()
if first_letter in letterContent:
print(f"Your name was found in letter {first_letter}")
else:
print("Your name was not found")


nameSearcher = nameInLetters()
next(nameSearcher)

name \n>> "))
nameSearcher.close()

codinglover
Автор

yup our Heroes
code:
def Heroes():
import time
Heroes = "Sufi", "Tony Stark", "harry", "Hassan", "Hammad"
time.sleep(1)

while True:
text = yield
if text in Heroes:
print("Searching your name")
time.sleep(2)
print("Your name is in the list of Heroes")
else:
print("Searching your name")
time.sleep(2)
print("Your name is not in the list of Heroes")

Heroes = Heroes()
print("search started")
next(Heroes)
Heroes.send(input("type your name", ))
Heroes.close()
Thanks harry bhai for teaching us... gulabi dil❤❤

iamsufikhan
Автор

def names():
import time
names = "akash harry haris carry amit ajey bhuvan shubham rahul aftab hrithik vivek ujjawal mohit rohit"
time.sleep(2)

while True:
text = (yield)
if text in names:
print("Your name is in the list.")
else:
print("Your name is not in the list.")

name = names()
next(name)
name.send(input("Type your Name: "))
name.close()

akashgupta
Автор

Itna Quarantine sun lia ki ab Coroutine bhi vhi sunai dera he😂

adityaojha
Автор

Your phython crash course is very intersting and knowledgefull.

bshiv
Автор

Ye courotine kam corontine jayada lag raha 😂 😂😂😂😆

mr.student
Автор

def seacher():
import time
# some 4 seconds time consuming task
book = []
time.sleep(4)
print("enter the coroutine you want to add")
for i in range(5):
user = input()
book.append(user)


while True:
text = (yield)
if text in book :
print("Your text in the book.")

else:
print("Text is not in the book")

search = seacher()
print("search started")
next(search)
print("Next method running")
print("Enter your name")
searching = input()
search.send(searching)

sawansirswal
Автор

# Coroutines in python


def searcher():
import time
details = "Hello! I am Anindo. I am a python programmer. I love coding."
# Some task that will take some times
time.sleep(4)

while True:
text = (yield)
if text in details:
print(f'Yes, "{text}" is in the Details.')

else:
print(f'Sorry, "{text}" is not in the Details.')


search = searcher()
print('Database is Loading... ')
next(search)
user_input = input('Enter your keywords:')
search.send(user_input)
user_input = input('Enter your keywords:')
search.send(user_input)
search.close()
# Searcher function will stop working here. if you start the function again then it will takes the delay time again.

search = searcher()
print('\nDatabase is Loading for second time...')
next(search)
user_input = input('Enter your keywords:')
search.send(user_input)
user_input = input('Enter your keywords:')
search.send(user_input)
user_input = input('Enter your keywords:')
search.send(user_input)
search.close()

anindo
Автор

sir your videos are great
please make video on Async/Await in python

taranathniraula
Автор

def Name():
import time
time.sleep(3)
with open("Name.txt", "r") as f:
names = f.read()

while True:
name = (yield)
if name in names:
print(name, " is in the book")
else:
print(name, " is not in the book")

if __name__ == '__main__':
N = Name()
print("Search of name
N.__next__()
print("NExt method run")

i = input("Enter Name: ")
N.send(i)
i = input("Enter Name: ")
N.send(i)
i = input("Enter Name: ")
N.send(i)

komalcs
Автор

Sir please make video on asynchronous programming in python

clot
Автор

i accept challenge.
answer is


def searcher():
import time
data=" This is about my journey of transition from mechanical engineer to data science and in journey code with Harry helping me a lot and i am very thankful"
time.sleep(3)

while True:
text=(yield)
if text in data:
print("text is in the data")
else:
print ("text not found error 404")

search= searcher()
next(search)
print (" searching ")
search.send("journey ")
my_input=input(" enter you want to search in data")
search.send(my_input)
search.close()

HimanshuKumar-rwdn
Автор

Difficult concept - Simple explanation!

manumaan
Автор

# Bhai hand to hand bana liya code
def searcher():
with open("Harry-ex.txt") as p, open("Hammad-ex.txt") as q, open("Harry-diet.txt") as r:
while True:
text = (yield)
if text in p.read():
print("your text is in harry-ex.txt")

elif text in q.read():
print("your text is in hammad-ex.txt")

elif text in r.read() :
print("your text is in harry-diet.txt")

else:
print("your text is not in file")

search = searcher()
print("search started")
next(search)
print("next method started")
search.send("dand bethak")

vijaygovindani
Автор

challenge accepted!!
def searcher():
book=['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l']

while True:
text=(yield )
if text in book:
print("text is in the book", text)
else:
print("text is not in the book")
search=searcher()
next(search)
search.send(input("enter"))

justtej
Автор

Sir couritines first time run ho gaya... fir jab jab voh run hoga toh user ko kaise pata ki kaha se start hoga inshort compiler ko kaise pata while loop se hi start karna he?

Mathmagician
Автор

After watching the advertisement for 'Grammarly' millions of times on this 'Python course' I finally added it to my browser.

simplifyingeducation
join shbcf.ru