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

  Рет қаралды 77,479

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 496
@CodeWithHarry
@CodeWithHarry 6 жыл бұрын
Bhai logo aap logo ka new year resolution kya hai?
@ramaisgod
@ramaisgod 6 жыл бұрын
I want to be Hero from Zero in Python in 2019. and It is 101% possible if you are with us. and Harry Bhai maine ek whatsApp group bnaya hai 'CODE WITH HARRY' naam se aapko kaise share kru ? Es group me sabhi learners ko add kaise kru .. plz reply
@deepaktiwari-ry9yo
@deepaktiwari-ry9yo 6 жыл бұрын
Bahut badhiya bhai...codewithharry group
@SudhanshuKumar-jl8iw
@SudhanshuKumar-jl8iw 6 жыл бұрын
@@ramaisgod I am with you . I also want to learn python.mymailid- sudhanshuraj8917@gmail.com
@ramaisgod
@ramaisgod 5 жыл бұрын
Dear friends, maine group banaya tha lekin harry bhaai ne koi response nhi diya isliye maine group delete kr diya..
@virajmadhavi1484
@virajmadhavi1484 4 жыл бұрын
Can u do video with selenium java in detail full course?
@akashgupta6254
@akashgupta6254 6 жыл бұрын
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()
@chetansoni3268
@chetansoni3268 4 жыл бұрын
@Akash Gupta agar bhai mujhe esme loop chalana ho jese your name is not in the list k baad wapas try again toh mai kese karunga?
@hisamshah5536
@hisamshah5536 3 жыл бұрын
@@chetansoni3268 write name.continue() instead of name.close()
@SwapnadeepMukherjee
@SwapnadeepMukherjee 3 жыл бұрын
Thanks for this bro. Missed closing the file despite Harry sir mentioning it.
@akshatgarg5699
@akshatgarg5699 3 жыл бұрын
There is a mistake in this code ... in output when you enter a letter a also it will show that "your name is in the list" But it should not be done This is the correct code :- 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()
@smowais
@smowais 3 жыл бұрын
@@akshatgarg5699 Correct
@RahulKumar-ru8kc
@RahulKumar-ru8kc 3 жыл бұрын
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!
@codinglover1477
@codinglover1477 3 жыл бұрын
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) nameSearcher.send(input("Enter name >> ")) nameSearcher.close()
@ahmedshaikh3773
@ahmedshaikh3773 2 жыл бұрын
Brother Thanks for code 👍👍
@ishaankapoor933
@ishaankapoor933 Жыл бұрын
letterFile.close()
@akshayukhalkar8097
@akshayukhalkar8097 4 жыл бұрын
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
@simplifyingeducation7689
@simplifyingeducation7689 4 жыл бұрын
After watching the advertisement for 'Grammarly' millions of times on this 'Python course' I finally added it to my browser.
@xXmayank.kumarXx
@xXmayank.kumarXx 3 жыл бұрын
true lol but i use adblocker
@mr.nobody3758
@mr.nobody3758 3 жыл бұрын
@@xXmayank.kumarXx me too
@shreyashkashyap
@shreyashkashyap 3 жыл бұрын
Their marketing tactic worked lol
@nayan5782
@nayan5782 3 жыл бұрын
Now we can also use Brave! it's a good ad-blocking browser.
@siddheshshinde848
@siddheshshinde848 3 жыл бұрын
@@xXmayank.kumarXx how to do it
@manav.daveee
@manav.daveee 5 жыл бұрын
def name_searcher(): f1 = open("15Names.txt") while True: read_file = (yield) if read_file in f1.read(): print("Your name is in the file") else: print("Your name is not in the file") read_file = input("Enter your name") search = name_searcher() print("Search started") next(search) print("Next Executed") search.send(read_file)
@amirsohail286
@amirsohail286 4 жыл бұрын
great bhai
@sawansirswal9402
@sawansirswal9402 4 жыл бұрын
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)
@priyankabajpai8434
@priyankabajpai8434 4 жыл бұрын
Your phython crash course is very intersting and knowledgefull.
@iamsufikhan
@iamsufikhan 3 жыл бұрын
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❤❤
@anindo101
@anindo101 4 жыл бұрын
# 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(' Database 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()
@rohanbeast3381
@rohanbeast3381 4 жыл бұрын
# chalenge accepted def name_definer(): names = open('text.txt', 'r') reader = names.read() while True: text = (yield) if text in reader: print('Your name is in the list') else: print("You are not in the list") inp = input("Enter your name here: ") search = name_definer() next(search) search.send(inp)
@maheshmohite5791
@maheshmohite5791 2 жыл бұрын
bhai yeh text.txt mein 15 type ke naam daale kya ? like rahul , suresh , ganesh etc.
@rohanbeast3381
@rohanbeast3381 2 жыл бұрын
@@maheshmohite5791 bro, now I don't know this, I don't code now
@maheshmohite5791
@maheshmohite5791 2 жыл бұрын
@@rohanbeast3381 okay bro no problem , so now switched to what kind of work other than coding
@justtej1364
@justtej1364 4 жыл бұрын
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"))
@komalcs2045
@komalcs2045 3 жыл бұрын
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 Started.....") 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)
@ranjitmaity6620
@ranjitmaity6620 5 жыл бұрын
def name(): import time time.sleep(2) with open("save.txt")as r: var1 = r.read() while True: text = (yield) if text in var1: print("your text in founded ") else: print("your text in does not found") searc = name() next(searc) var1 = input("enter your text: ") searc.send(var1)
@SurajGusain-uo3di
@SurajGusain-uo3di 3 жыл бұрын
this code is not running please check
@CuriousBoy3566
@CuriousBoy3566 2 жыл бұрын
@@SurajGusain-uo3di bro first crate the file
@manumaan
@manumaan 2 жыл бұрын
Difficult concept - Simple explanation!
@saharayub4448
@saharayub4448 2 жыл бұрын
God bless you Sir!
@cynthia7709
@cynthia7709 3 жыл бұрын
Paid 3500 cllg extra fees for Python project classes . Learned absolutely nothing useful Watched code with harry Designed a Virtual AI . Thankk you so much Im moving forward to more of your courses now . 💕💖
@motivationwala1263
@motivationwala1263 3 жыл бұрын
Hi
@HimanshuKumar-rw3dn
@HimanshuKumar-rw3dn 2 жыл бұрын
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()
@mr.student5805
@mr.student5805 4 жыл бұрын
Ye courotine kam corontine jayada lag raha 😂 😂😂😂😆
@SahilKumar-ni7su
@SahilKumar-ni7su 4 жыл бұрын
HAHAHAHHA right bhai
@vishalpatil6578
@vishalpatil6578 4 жыл бұрын
main bhi wahi bol raha tha
@mr.student5805
@mr.student5805 4 жыл бұрын
@@vishalpatil6578 mujhe to sunai nhi diya
@sutanubasak73
@sutanubasak73 3 жыл бұрын
def names(): import time names = "sutanu suman tinu carry bapi karmakar messi soumya pritam dipendu sourav cahndra debarun vulubhai" 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() import time time.sleep(2) print(" THANKS FOR USEING THIS METHOD ")
@EasyLearning7
@EasyLearning7 5 жыл бұрын
def task(): import time f = open("Hamza.txt") time.sleep(2) while True: read_file = (yield ) if read_file in f.read(): print("Your name in a book") else: print("Your name is not a book") read_file = input("Enter your name: ") search = task() print("Searcher Started") next(search) print("Next Step") search.send(read_file)
@sabdekho3819
@sabdekho3819 5 жыл бұрын
Very nice
@SachidanandKumar-mg9lo
@SachidanandKumar-mg9lo Жыл бұрын
Thank you bro for your amazing work !
@sayedrazzak9488
@sayedrazzak9488 2 жыл бұрын
#thanks harry bhai for this playulist # i create a list of letters def finder(): import time letter=["badsha","good","ayan","google","amazon","best","dream","chutiya","jinat"] time.sleep(3) while True: name=(yield) if name in letter : print("your name in the letters") else: print("item not found !!!") my_name=finder() print("searching ......") next(my_name) user=input("search any word ") my_name.send(user)
@Normality42
@Normality42 2 жыл бұрын
10:59 Challenge accepted : def searcher(): import time letters = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o"] time.sleep(4) while True: letter = (yield) if letter in letters: print("The Lette is present") else: print("The Letter is not present") search = searcher() print("Finding the letter....") next(search) search.send("s")
@radhekrishn702
@radhekrishn702 4 жыл бұрын
a= input("Enter your name to find : ") def nf(): import time time.sleep (4) nl="Gopal , Harry , Prashant , Python , " while True: s=(yield) if s in nl: print("ya your name finded in the book ") else: print("no your name not find in the book") n= nf() next(n) n.send(a) n.close(
@taranathniraula6572
@taranathniraula6572 3 жыл бұрын
sir your videos are great please make video on Async/Await in python
@vijaygovindani6374
@vijaygovindani6374 4 жыл бұрын
# 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")
@lone_wolf2020
@lone_wolf2020 2 жыл бұрын
I Accepted the challenge . Thanks for this Video. # Challenge : def searching(): import time file = open("text1.txt") read_file = file.read() time.sleep(3) print("those 15 words are :", read_file) while True: text = yield if text in read_file: print("This word is in the file.") else: print("This word is not in the file.") search = searching() # coroutine developed print("Searching started...") next(search) print("We got the results... ") search.send("Human") input("Press Enter key to go next") search.send("Harry") input("Press Enter key to go next") search.send("hey ") input("Press Enter key to go next") search.send("i'm")
@bugbusters.9941
@bugbusters.9941 3 жыл бұрын
def search_name(): import time name_lst = ["krushna", "sanket", "Nikhil", "bhumika"] time.sleep(3) while True: name = (yield) if name in name_lst: print("Your name is present in this list") elif name=="e": print("Thanks for using this software, have a good day ahead..!") else: print("Your name is not present in this list") search = search_name() next(search) while True: nm = input("Press e to exit or Enter Your Name to search :") search.send(nm) if nm=="e": exit()
@megaempireminecraft9379
@megaempireminecraft9379 2 жыл бұрын
def serving(): import time Name_list = "Arpit, Harry, Yash, Hardik, Divesh, Nagesh, Akshansh, etc" # Any task which consume time time.sleep(5) while True: tex = (yield) if tex in Name_list: print(f"Yes your name is in namelist at {Name_list.find(n)}") if tex not in Name_list: print("Your name not in list sorry") # serve = serving() while True: serve = serving() n = input("Please enter your name: ") print("Search started") next(serve) serve.send(n) i = input("continue or not y or n: ") if i == "y": serve.close() continue if i == "n": print("Thank you") serve.close() break
@bantyburange888
@bantyburange888 4 жыл бұрын
def searcher(): import time book=["a","b","c","f","p"] time.sleep(4) while True: text=(yield) if text in book: print("your letter book") else: print("your letter is not in book") search =searcher() next(search) print("enter your first letter of name:") search.send(f"{input()}")
@subhishivhare3515
@subhishivhare3515 4 жыл бұрын
I accepted the challenge Code will be displayed soon💙💚💚💛🧡❤️❤️💛💚💚💙💙💚💛🧡🧡❤️
@adityaojha2701
@adityaojha2701 4 жыл бұрын
still waiting for code🤣🤣
@dhruvagrawal291
@dhruvagrawal291 Жыл бұрын
Challenge Accepted - : def letters_in_name(): import time time.sleep(4) with open("letters.txt", "r") as f: letter_content = f.read() while True: text = (yield) first_letter = text[0].upper() if first_letter in letter_content: print("your name was found") else: print("you name wasn't found") namesearcher = letters_in_name() next(namesearcher) while True: i = input("Enter your name : ") if i == 'q': quit() else: namesearcher.send(i)
@satyamrawat1980
@satyamrawat1980 4 жыл бұрын
I accepted the challenge ❤
@tejalmohod9389
@tejalmohod9389 3 жыл бұрын
def searcher(): import time list=["aakanksha","janvhi","radha","Tejal","Ankita","Nafiya","kiran"] time.sleep(3) while True: text=(yield) if text in list: print("Your name is present in list") else: print("Your name is not present in list") search=searcher() print("Search Started") next(search) print("Next Method Run") search.send("Tejal") input("Press Any Key") search.send("Aditi") search.close()
@soumyanamdeo2347
@soumyanamdeo2347 4 жыл бұрын
I always accept the challenge given by you
@clot27
@clot27 3 жыл бұрын
Sir please make video on asynchronous programming in python
@AdarshSingh-cb5yf
@AdarshSingh-cb5yf 4 жыл бұрын
def namesearcher(): import time print("searching started........ ") letters=["ravi","anurag","adarsh","singh","khurana","rana"] time.sleep(1) while True: name=(yield) if name in letters: print( "your name is found ") else: print("not found") nsearcher=namesearcher() next(nsearcher) nsearcher.send(input("enter your name for searching operation "))
@vishwamevawala6835
@vishwamevawala6835 2 жыл бұрын
def searcher(): book = "vishwa , xyz , pqr , mno " while True: text = (yield) if text in book: print("Your text is in the book") else: print("Text is not in the book") input=input("enter your search:") search = searcher() next(search) search.send(input)
@laxmidharrouta552
@laxmidharrouta552 4 жыл бұрын
def coroutines(): import time name = "hrry asish malaya bidyadhara ram mohan" time.sleep(6) while True: text = (yield) if text in name: print('Your string is Present in the book') else: print('Your text is not Present in the book') cor = coroutines() print("Please wait while setting up........") next(cor) taken = 0 while taken
@wanderingways02
@wanderingways02 2 жыл бұрын
Thanks bro 👍
@SiamNimda
@SiamNimda 3 жыл бұрын
import time def searcher(): book="siam is a good boy" time.sleep(2) while True: text=(yield ) if text in book: print("congo") else: print("you failed") seach=searcher() next(seach) seach.send("siam") seach.close()
@adityaojha2701
@adityaojha2701 4 жыл бұрын
Thank you very much Harry bahi for these topics!!
@rohannikale
@rohannikale 2 жыл бұрын
def rohan(): import time a=open("text.txt" , "r") r=a.read() time.sleep(2) while True: name=(yield) print(name) if name in r: print('yes is present in the book') else: print('no is present in the book') roha=rohan() next(roha) inpu =input('Enter your name : ') roha.send(inpu)
@subhu143
@subhu143 3 жыл бұрын
I accept always ur challenge ♥🤗
@bhaweshjain7292
@bhaweshjain7292 3 жыл бұрын
import time def letter_reader(): with open("Letter.txt") as le: book = le.read() time.sleep(3) while 1: text = (yield) if text in book: print("Your name is in the letter") else: print("Your name is not in the letter") name = letter_reader() print("Reading letters...") next(name) while 1: name.send(input("Enter your name >"))
@lalit7562
@lalit7562 2 жыл бұрын
def s(): import time j = ["lalit","sourav","zain","niko"] time.sleep(5) while True: t = (yield) if lalit in j : print ("then its in ") else: print (f"its not {j}") g = s() print("search started ") h = input() print (h) print (g) print ("search completed ")
@adityaojha2701
@adityaojha2701 4 жыл бұрын
Itna Quarantine sun lia ki ab Coroutine bhi vhi sunai dera he😂
@shreyashkashyap
@shreyashkashyap 3 жыл бұрын
def words(): a = ["Shreyash", "Mrinmay", "Nirjana", "Annesha", "Arpit", "Jnandeep", "Sameer", "Chiranjib", "Ritupallav", "Moonjyoti", "Vanshika", "Pathsala", "Assam", "India", "Asia", "Earth", "Solar Syatem"] while True: value = (yield) if value in a: print('The word is present.') else: print("The word is absent.") search = words() next(search) inp = input("Type here:") search.send(inp) search.close()
@WHITEDEVIL-nu5og
@WHITEDEVIL-nu5og 3 жыл бұрын
bhai intro tune is very motivating when ever i see and listen the intro so l feel very good
@nikhiljain8303
@nikhiljain8303 Жыл бұрын
Helpful solution: def nameInLetter(): file = open("a.txt") content = file.read() while True: text = (yield) name = text.lower() if name in content: print("Name Found") else: print("Name not found") nameSearcher = nameInLetter() next(nameSearcher) while True: name = input("Enter the name: ") if(name=='q'): break nameSearcher.send(name) nameSearcher.close()
@yashtripathi9
@yashtripathi9 2 жыл бұрын
import time def search(): f = open("yash_co.txt") c = f.read() time.sleep(2) while True: text = (yield ) if text in c: print("your name is in the file") else: print("your name is not in file") obj = search() next(obj) obj.send(input("enter your name "))
@udaygupta6724
@udaygupta6724 2 жыл бұрын
def searcher(): print("Reading the File wait for a while") with open("D:\Codes\Python\\text.txt") as file: names = file.read() print("File Readed !!") while(True): text = (yield) if text in names: print("Your Name is Found in the File.") else: print("Your Name is not Found in the File.") name = input("Enter the Name you want to Search - ") search = searcher() print("Search Started") next(search) search.send(name)
@palakkarani1352
@palakkarani1352 3 жыл бұрын
def searcher(): with open('name.txt') as f: name = f.read() while True: text = (yield) if text in name: print('Your name is there in list') else: print("you name is not in list") search = searcher() next(search) input_name = input("enter the name you want to seach") search.send(input_name) input_name = input("enter the name you want to seach") search.send(input_name) input_name = input("enter the name you want to seach") search.send(input_name) input_name = input("enter the name you want to seach") search.send(input_name)
@jaat_Choudhary00
@jaat_Choudhary00 3 жыл бұрын
I except the challenge import time def work(): book = "names is shreshth , harry, shubham , aryia" time.sleep(10) while True: a = (yield) if a in book: print("the name in the book") else: print("the name not in the book") c = work() next(c) while True: d = input("enter a name if you press 4 so you exit to the program: ") c.send(d) if d == '4': break
@krishrai1269
@krishrai1269 2 жыл бұрын
def searcher(): line = "My name is Krish Rai. I live in Dharan, Sunsari. I like my city." while True: text = (yield) if text in line: print("Your name is in here") else: print("Your name is not in here") search = searcher() next(search) name = input("Enter your name:") search.send(name)
@ComradeWeredog
@ComradeWeredog Жыл бұрын
def reader(): print("Opening") global i i = 1 global num num = 1 while(i
@siddharthraj4569
@siddharthraj4569 2 жыл бұрын
challlenge accepted harry bhai
@FireGaming-oq9xp
@FireGaming-oq9xp 2 жыл бұрын
#question def reader(): with open("letters.txt","r") as f: a = f.read() content = a.split(" ") while True: name = (yield) if name[0].upper() in content: print("Your name's first letter exists in the list") else: print(f"Your name's is rare... Your name first letter '{name[0]}' does not exist in the list") name = input("Enter your name: ") file = reader() next(file) file.send(name)
@Mathmagician73
@Mathmagician73 4 жыл бұрын
Sir couritines first time run ho gaya... fir jab jab voh run hoga toh user ko kaise pata ki kaha se start hoga execution..... inshort compiler ko kaise pata while loop se hi start karna he?
@krishna290gamer2
@krishna290gamer2 Жыл бұрын
# I accept the challenge import time import fontstyle as fnt def letter_writting(): time.sleep(2) l1 = "Hello Krishna how are you?" l2 = "I am fine Mr X, how are you?" l3 = "I am fine just wants to destroy this world." l4 = "Yeah" l5 = "Good Harry" l6 = "Dear customer... blah blah blah..." l7 = "This is Skill F" l8 = "#pYtHoN" l9 = "This is a pythonic way." l10 = "CPP or C++?" l11 = "Creeper" l12 = "Pydroid3" l13 = "Cxxdroid" l14 = "Replit" l15 = "God Father, VS Code" letter_box = [l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15] while 1: query = (yield) i = 1 for letter in letter_box: if query in letter: print(fnt.apply(f"{query} is in letter no. {i}", "green/bold")) else: print(fnt.apply(f"{query} is not in letter no. {i}", "red/bold")) i+=1 lsearch = letter_writting() next(lsearch) lsearch.send("Krishna") input() lsearch.send("Harry") input() lsearch.send("Nope") input() lsearch.send(" ") input() lsearch.send("Replit") input() lsearch.send("YAYAYAYAYAYAY")
@CodexGem
@CodexGem 4 жыл бұрын
change accepted inx = input("Enter your name:") def searcher(): import time book = "This is anand adil yagnesh sairaj soham" time.sleep(4) while True: text = yield if text in book: print("your name is in book") else: print("your name is not in name") search = searcher() next(search) search.send(inx)
@tusharkathuria5661
@tusharkathuria5661 Жыл бұрын
def searcher(): import time # Some 4 seconds time consuming task dic = ["Tushar" ,"Arpit"," Sonu"," Raman"] time.sleep(4) while True: text = (yield) if text in dic: print("Your name is in letter") else: print("your name is not in letter ") search = searcher() print("search started") next(search) print("Next method run") input("eter the nme ") search.send(input) search.close()
@bestest1121
@bestest1121 2 жыл бұрын
challenge accepted import time def name(): time.sleep(2.5) text=[] hmt=int(input("How many words should be there - ")) for i in range(hmt): user=input("Enter your text - ") text.append(user) strtext="".join(text) while True: name=(yield) if name in strtext: print("Your name is in the text") else: print("not found") namer=name() print("The next method is running - ") next(namer) print("Done,now send will run") while True: yn=input("What is your name - ") namer.send(yn)
@sciesteam
@sciesteam 6 жыл бұрын
Bhai mai laptop afford nahi kar sakta isiliye android mobile me programming karta hoon par abhi mai khud ke dam par laptop lunga
@FrustratedRG
@FrustratedRG 4 жыл бұрын
which app u r using
@dogbrosinc6912
@dogbrosinc6912 4 жыл бұрын
@@FrustratedRG pydroid3
@dogbrosinc6912
@dogbrosinc6912 4 жыл бұрын
@@Thinketh- hes lying dont believe this people
@mr.student5805
@mr.student5805 4 жыл бұрын
@@dogbrosinc6912 usme lying vali kya baat hai
@dogbrosinc6912
@dogbrosinc6912 4 жыл бұрын
@@mr.student5805 mene bohot sare log ko ei batth karne suna ei loi naya nehi just attention seeker
@mandardeshpande2740
@mandardeshpande2740 4 жыл бұрын
I accept this challenge👍
@adarshsahu4638
@adarshsahu4638 2 жыл бұрын
import time def namesearcher(): print("please wait the program is running ") time.sleep(3) linee="hii,this is adarsh and i want to say something about ypur nature" while True: text=(yield) if text in linee: print("your name is available ") else: print("not available") nsearch=namesearcher() next(nsearch) name=input("plese enter your name") nsearch.send(name)
@ankush9080
@ankush9080 3 жыл бұрын
''' Program using coroutine ''' def coro(): import time f = open("Name_book.txt") r = f.read() f.close() print("There are some names in the book") # print(r)# To know how many names are there in file time.sleep(2) while (True): # a = input("Enter your name:") p = (yield) if p in r: print("Your name found in Book!!") else: print("Your name not found in book try again!!") a = str(input("If you want to add your name in the book the type a:")) if a=='a': f = open("Name_book.txt","a") inp = input("Enter your name:") f.write(inp) f.close() print("Your name added in the book") else: print("Try again!!") coroutine = coro() next(coroutine) p = input("Enter your name:") coroutine.send(p)
@AnkitSingh-pn2ju
@AnkitSingh-pn2ju 3 жыл бұрын
def searcher(): import time print("Searcher is executing") names="Ankit,abhinav,rohan,harry" time.sleep(4) while True: text=(yield) if text in names: print("Your name in the list") else: print("your name is not present in the list") search=searcher() next(search) search.send("Ankit") input("press any key:") search.send("abhinav") search.close()
@nikethdonthula2123
@nikethdonthula2123 2 жыл бұрын
#coroutines in python def searcher(): import time #some 4 seconds time consuming task name = "This is the line with is used to search and my name is Niketh" time.sleep(4) while True: text=(yield)#searcher is used as a coroutine if text in name: print("Your name is in the search line") else: print("Your name is not in the search line") search=searcher() print("Search started") next(search) print("Next method is executed") k=input("Enter a name : ") search.send(k) n=input("Enter a name : ") search.send(n) search.close()
@manojrudra6007
@manojrudra6007 2 жыл бұрын
hare krishna, thank you harry bhai
@surajthapafc
@surajthapafc 5 жыл бұрын
def secher(): import time with open("abc.txt") as f: x = f.read() time.sleep(3) while True: myname = (yield) if myname in x: print("name is present") else: print("no name") myname = secher() print("Enter the name to search") c = input(">>>") next(myname) myname.send(c) print("Enter the name to search") c = input(">>>") myname.send(c) myname.close()
@chhotastatus491
@chhotastatus491 Жыл бұрын
I accept the challenge ✊
@vibhutijain100
@vibhutijain100 4 жыл бұрын
def reader(): import time # Some 4 seconds time consuming task file = ["A","E","V","T","P"] time.sleep(4) while True: text = (yield) if text in file: print("Your letter is in the file") else: print("letter is not in the file") search = reader() print("search started") next(search) print("Next method run") search.send(input("enter a letter")) search.close()
@viralvideoa
@viralvideoa 3 жыл бұрын
def names(): import time names ="akash shubham rajat raghav ramn jai parakash" time.sleep(2) while True: text = (yield) if text in names: print("ok we found it") else: print("your are noy in list") name=names() next(name) i = input() name.send(i) # name.close() name.send(i) name.send(i)
@priyanshshukla6485
@priyanshshukla6485 3 жыл бұрын
Congrats for 1 million
@Swarnimshow
@Swarnimshow 2 жыл бұрын
#challenge accepted def naamdhundo(): import time f = open("couruwutxt") lines = f.read() while (True): text = (yield) letter = text[0].lower() if letter in lines: print(f"Your name is in the letter{letter}") else: print("Your name was not in the letter") namesearcher = naamdhundo() next(namesearcher) namesearcher.send(input("Enter name ")) namesearcher.close()
@mayurthorat512
@mayurthorat512 4 жыл бұрын
Nycly explained vdo ❤️👍
@sarikad9383
@sarikad9383 3 жыл бұрын
Thank you bro😊
@venkatesasrikanthdhulipala9486
@venkatesasrikanthdhulipala9486 4 жыл бұрын
import time def time_delay(n): time.sleep(n) while True: s=(yield) with open("new2.txt","r") as f: time_delay(6) if s in f.readline(): print("match found......") else: print("match not found>>>>>!") s=time_delay(7) next(s) s.send(input("enter the the text you want to find")) s.send(input("enter the the text you want to find")) s.close()
@AnkushSaral
@AnkushSaral Жыл бұрын
I accept this challenge 😎
@ashwaniprajapati2496
@ashwaniprajapati2496 4 жыл бұрын
I accept the challenge 👍
@Atiqawan-xf9ue
@Atiqawan-xf9ue 5 ай бұрын
def searcher(): import time book = "hello my name is husnain I read in class 10th and I am am writing this project to find my name in this text" time.sleep(3) while True: text =(yield) if text in book: print("text is in book") else : print("text is not in book") search=searcher() next(search) search.send(input("Enter your text to find in book: "))
@pruthvip8137
@pruthvip8137 2 жыл бұрын
nice explanation
@MUKESHKUMAR-kw7ul
@MUKESHKUMAR-kw7ul 4 жыл бұрын
def searcher(): op = open("file.txt","a") op.write(f"My name is Mukesh kumar") op.close() while True: Letter = (yield) with open("file.txt") as op: for Lines in op: if Letter in Lines: print("Letter found") else: print("Letter not found") search = searcher() print("Search started") next(search) print("While loop run") search.send(input("Letter you want to search: ")) search.send(input("Letter you want to search: ")) search.close()
@shobhitkumar6096
@shobhitkumar6096 3 жыл бұрын
def name_searcher(): import time f = open("names.txt", "r") list1 = f.read() time.sleep(4) while True: name = (yield) if name in list1: print("Your name is present in the Letter List") else: print("Name not present in the Letter List") search = name_searcher() print("search started") next(search) search.send(input("Enter the Name: ")) input("Press any key") search.close()
@sudarshanmhaisdhune1039
@sudarshanmhaisdhune1039 4 жыл бұрын
500th liker bhai...dil bnta hai ab 😀
@027_souryakrbarnwal3
@027_souryakrbarnwal3 4 жыл бұрын
book = [] print("enter 5 names") for i in range(5): book.append(input()) choice = input("do you want to search ? answer in y or n ") def searcher(): import time time.sleep(4) while True: text = (yield) if text in book: print("Your name is in the book") else: print("Name not in the book") if choice == "y": name = input("enter the name you want to search ") search = searcher() print("search started") next(search) search.send(name) search.close() else: print("thanks")
@shubhamwaghilkar4236
@shubhamwaghilkar4236 4 жыл бұрын
def searcher(): import time f = open("co.txt", "rt") time.sleep(3) f1 = f.read() while True: text = (yield) if text in f1: print("Your text found ") else: print("your text not found") search = searcher() next(search) while True: user = input("Enter the letter you want to search") search.send(user) if user == "0": print("Search ended") break
@debasishsahoo3446
@debasishsahoo3446 4 жыл бұрын
def searcher(): import time book = "this book is only for students who want to learn new in their lives" book1= "abraham lincon was a great leader" book2= "kohli is my favorite cricket player" book3= "programming is the real world" book4= "take python easy " time.sleep(3) while True: text=(yield ) if text in book: print("congrats your name have found in book") elif text in book1: print("congrats your name have found in book1") elif text in book2: print("congrats your name have found in book2") elif text in book3: print("congrats your name have found in book3") elif text in book4: print("congrats your name have found in book4") else: print("sorry..we could'nt find your name") search= searcher() print("please wait.....") next(search) for i in range(10): inpu = str(input("search the name")) search.send(inpu)
@sachinpal5823
@sachinpal5823 3 жыл бұрын
def finder(): f = open("letters.txt") content = f.read() while True: letter = (yield ) if letter in content: print("Your letter is in the book") else: print("Letter not found..") find = finder() print("Finding Started") next(find) print("Next method started") find.send("Sachin") input("Press Enter") find.send("Joker") input("Press Enter") find.send("Harry") input("Press Enter") find.send("Good") input("Press Enter") find.send("Programmer") input("Press Enter") find.send("programmer") find.close()
@fazalshaikh4756
@fazalshaikh4756 3 жыл бұрын
import time def a(): time.sleep(3) with open("Eye.txt") as w: s=w.readlines() de=str(s) while True: text = yield print("Available" if text in de else "Not available") search=a() next(search) while True: search.send(input("Enter"))
@ayushsingh123
@ayushsingh123 2 жыл бұрын
import time def func(): word = "NAMES ARE AYUSH SINGH SAKSHI SINGH MUGLA SINGH HALELUIYA SINGH" time.sleep(4) while True: letter = (yield) if letter in word: print("YOUR NAME IS IN LIST") else: print("YOUR NAME IS NOT IN LIST") search = func() print("SEARCH STARTED.... ") next(search) name = str(input("ENTER YOUR NAME")) search.send(name) print("SEARCH END..........")
@ahmadhasan7952
@ahmadhasan7952 3 жыл бұрын
def searcher(): time.sleep(3) f='sorry I am late but there was so much traffic' while True: a=(yield) if a in f.lower(): print('yes it is in the text') else: print("no not in text") s=searcher() next(s) s.send(input("enter a word:"))
@ashokgarg8670
@ashokgarg8670 4 жыл бұрын
def Find(): f = open("name.txt") text = f.readline() while True: name = (yield) if name in text: print("Yes the name is in the text file.") else : print("No the name is not in text file.") f.close() Input1 = input("Please enter the name you want to search for in the text file : ") Find_Name = Find() next(Find_Name) Find_Name.send(Input1) Find_Name.close()
@anubhavrajpaul9908
@anubhavrajpaul9908 3 жыл бұрын
def names(): import time name = "Akash Rohit Mandeep Ayush Hamad Rahul" time.sleep(4) while True: text = (yield) if text in name: print("Your name is in the list.") else: print("Your name is not in the list.") search = names() next(search) search.send(input("Enter the name")) search.close()
@ysgaming9743
@ysgaming9743 2 жыл бұрын
I accept the challenge brother.।
@shivanshutyagi83
@shivanshutyagi83 4 жыл бұрын
def name_searcher(): import time # some task taking a time of 4 seconds time.sleep(4) l1=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O"] # initialisation part ends here while True: get=(yield) if get[0] in l1: print("Name Found") else: print("Name not found") n1=name_searcher() next(n1) n1.send("Astin") n1.send("Scala") n1.send("Gloster")
@tanmaydaga7204
@tanmaydaga7204 4 жыл бұрын
def searcher(): import time book=["harry","rohan","haamad","nikhil","harsh","john","rahul","hitesh","salman","johnsena", "shahrukh","keshav","krishna","priyanka","rishi kapoor"] time.sleep(4) while True: text=(yield) if text in book: print("Your name is in book") else: print("Your name is not in book") print("Please wait..") search=searcher() next(search) for i in range(int(input("How many values you want to give"))): search.send(input().lower())
Python Asyncio, Requests, Aiohttp | Make faster API Calls
17:56
Patrick Collins
Рет қаралды 138 М.
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
Os Module | Python Tutorials For Absolute Beginners In Hindi #79
14:38
AsyncIO & Asynchronous Programming in Python
12:28
NeuralNine
Рет қаралды 157 М.
AsyncIO, await, and async - Concurrency in Python
9:12
Socratica
Рет қаралды 116 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
Json Module | Python Tutorials For Absolute Beginners In Hindi #82
11:34
Async for loops in Python
16:36
mCoding
Рет қаралды 67 М.
*args and **kwargs in Python | Python Tutorials for Beginners #lec62
22:03
Jenny's Lectures CS IT
Рет қаралды 79 М.
Python Asynchronous Programming - AsyncIO & Async/Await
25:57
Tech With Tim
Рет қаралды 436 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,3 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.