Bhai logo aap logo ka new year resolution kya hai?
@ramaisgod6 жыл бұрын
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-ry9yo6 жыл бұрын
Bahut badhiya bhai...codewithharry group
@SudhanshuKumar-jl8iw6 жыл бұрын
@@ramaisgod I am with you . I also want to learn python.mymailid- sudhanshuraj8917@gmail.com
@ramaisgod5 жыл бұрын
Dear friends, maine group banaya tha lekin harry bhaai ne koi response nhi diya isliye maine group delete kr diya..
@virajmadhavi14844 жыл бұрын
Can u do video with selenium java in detail full course?
@akashgupta62546 жыл бұрын
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()
@chetansoni32684 жыл бұрын
@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?
@hisamshah55363 жыл бұрын
@@chetansoni3268 write name.continue() instead of name.close()
@SwapnadeepMukherjee3 жыл бұрын
Thanks for this bro. Missed closing the file despite Harry sir mentioning it.
@akshatgarg56993 жыл бұрын
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()
@smowais3 жыл бұрын
@@akshatgarg5699 Correct
@RahulKumar-ru8kc3 жыл бұрын
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!
@codinglover14773 жыл бұрын
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()
@ahmedshaikh37732 жыл бұрын
Brother Thanks for code 👍👍
@ishaankapoor933 Жыл бұрын
letterFile.close()
@akshayukhalkar80974 жыл бұрын
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
@simplifyingeducation76894 жыл бұрын
After watching the advertisement for 'Grammarly' millions of times on this 'Python course' I finally added it to my browser.
@xXmayank.kumarXx3 жыл бұрын
true lol but i use adblocker
@mr.nobody37583 жыл бұрын
@@xXmayank.kumarXx me too
@shreyashkashyap3 жыл бұрын
Their marketing tactic worked lol
@nayan57823 жыл бұрын
Now we can also use Brave! it's a good ad-blocking browser.
@siddheshshinde8483 жыл бұрын
@@xXmayank.kumarXx how to do it
@manav.daveee5 жыл бұрын
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)
@amirsohail2864 жыл бұрын
great bhai
@sawansirswal94024 жыл бұрын
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)
@priyankabajpai84344 жыл бұрын
Your phython crash course is very intersting and knowledgefull.
@iamsufikhan3 жыл бұрын
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❤❤
@anindo1014 жыл бұрын
# 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()
@rohanbeast33814 жыл бұрын
# 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)
@maheshmohite57912 жыл бұрын
bhai yeh text.txt mein 15 type ke naam daale kya ? like rahul , suresh , ganesh etc.
@rohanbeast33812 жыл бұрын
@@maheshmohite5791 bro, now I don't know this, I don't code now
@maheshmohite57912 жыл бұрын
@@rohanbeast3381 okay bro no problem , so now switched to what kind of work other than coding
@justtej13644 жыл бұрын
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"))
@komalcs20453 жыл бұрын
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)
@ranjitmaity66205 жыл бұрын
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-uo3di3 жыл бұрын
this code is not running please check
@CuriousBoy35662 жыл бұрын
@@SurajGusain-uo3di bro first crate the file
@manumaan2 жыл бұрын
Difficult concept - Simple explanation!
@saharayub44482 жыл бұрын
God bless you Sir!
@cynthia77093 жыл бұрын
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 . 💕💖
@motivationwala12633 жыл бұрын
Hi
@HimanshuKumar-rw3dn2 жыл бұрын
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.student58054 жыл бұрын
Ye courotine kam corontine jayada lag raha 😂 😂😂😂😆
@SahilKumar-ni7su4 жыл бұрын
HAHAHAHHA right bhai
@vishalpatil65784 жыл бұрын
main bhi wahi bol raha tha
@mr.student58054 жыл бұрын
@@vishalpatil6578 mujhe to sunai nhi diya
@sutanubasak733 жыл бұрын
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 ")
@EasyLearning75 жыл бұрын
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)
@sabdekho38195 жыл бұрын
Very nice
@SachidanandKumar-mg9lo Жыл бұрын
Thank you bro for your amazing work !
@sayedrazzak94882 жыл бұрын
#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)
@Normality422 жыл бұрын
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")
@radhekrishn7024 жыл бұрын
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(
@taranathniraula65723 жыл бұрын
sir your videos are great please make video on Async/Await in python
@vijaygovindani63744 жыл бұрын
# 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_wolf20202 жыл бұрын
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.99413 жыл бұрын
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()
@megaempireminecraft93792 жыл бұрын
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
@bantyburange8884 жыл бұрын
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()}")
@subhishivhare35154 жыл бұрын
I accepted the challenge Code will be displayed soon💙💚💚💛🧡❤️❤️💛💚💚💙💙💚💛🧡🧡❤️
@adityaojha27014 жыл бұрын
still waiting for code🤣🤣
@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)
@satyamrawat19804 жыл бұрын
I accepted the challenge ❤
@tejalmohod93893 жыл бұрын
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()
@soumyanamdeo23474 жыл бұрын
I always accept the challenge given by you
@clot273 жыл бұрын
Sir please make video on asynchronous programming in python
@AdarshSingh-cb5yf4 жыл бұрын
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 "))
@vishwamevawala68352 жыл бұрын
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)
@laxmidharrouta5524 жыл бұрын
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
@wanderingways022 жыл бұрын
Thanks bro 👍
@SiamNimda3 жыл бұрын
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()
@adityaojha27014 жыл бұрын
Thank you very much Harry bahi for these topics!!
@rohannikale2 жыл бұрын
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)
@subhu1433 жыл бұрын
I accept always ur challenge ♥🤗
@bhaweshjain72923 жыл бұрын
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 >"))
@lalit75622 жыл бұрын
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 ")
@adityaojha27014 жыл бұрын
Itna Quarantine sun lia ki ab Coroutine bhi vhi sunai dera he😂
@shreyashkashyap3 жыл бұрын
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-nu5og3 жыл бұрын
bhai intro tune is very motivating when ever i see and listen the intro so l feel very good
@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()
@yashtripathi92 жыл бұрын
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 "))
@udaygupta67242 жыл бұрын
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)
@palakkarani13523 жыл бұрын
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_Choudhary003 жыл бұрын
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
@krishrai12692 жыл бұрын
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 Жыл бұрын
def reader(): print("Opening") global i i = 1 global num num = 1 while(i
@siddharthraj45692 жыл бұрын
challlenge accepted harry bhai
@FireGaming-oq9xp2 жыл бұрын
#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)
@Mathmagician734 жыл бұрын
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 Жыл бұрын
# 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")
@CodexGem4 жыл бұрын
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 Жыл бұрын
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()
@bestest11212 жыл бұрын
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)
@sciesteam6 жыл бұрын
Bhai mai laptop afford nahi kar sakta isiliye android mobile me programming karta hoon par abhi mai khud ke dam par laptop lunga
@FrustratedRG4 жыл бұрын
which app u r using
@dogbrosinc69124 жыл бұрын
@@FrustratedRG pydroid3
@dogbrosinc69124 жыл бұрын
@@Thinketh- hes lying dont believe this people
@mr.student58054 жыл бұрын
@@dogbrosinc6912 usme lying vali kya baat hai
@dogbrosinc69124 жыл бұрын
@@mr.student5805 mene bohot sare log ko ei batth karne suna ei loi naya nehi just attention seeker
@mandardeshpande27404 жыл бұрын
I accept this challenge👍
@adarshsahu46382 жыл бұрын
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)
@ankush90803 жыл бұрын
''' 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-pn2ju3 жыл бұрын
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()
@nikethdonthula21232 жыл бұрын
#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()
@manojrudra60072 жыл бұрын
hare krishna, thank you harry bhai
@surajthapafc5 жыл бұрын
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 Жыл бұрын
I accept the challenge ✊
@vibhutijain1004 жыл бұрын
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()
@viralvideoa3 жыл бұрын
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)
@priyanshshukla64853 жыл бұрын
Congrats for 1 million
@Swarnimshow2 жыл бұрын
#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()
@mayurthorat5124 жыл бұрын
Nycly explained vdo ❤️👍
@sarikad93833 жыл бұрын
Thank you bro😊
@venkatesasrikanthdhulipala94864 жыл бұрын
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 Жыл бұрын
I accept this challenge 😎
@ashwaniprajapati24964 жыл бұрын
I accept the challenge 👍
@Atiqawan-xf9ue5 ай бұрын
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: "))
@pruthvip81372 жыл бұрын
nice explanation
@MUKESHKUMAR-kw7ul4 жыл бұрын
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()
@shobhitkumar60963 жыл бұрын
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()
@sudarshanmhaisdhune10394 жыл бұрын
500th liker bhai...dil bnta hai ab 😀
@027_souryakrbarnwal34 жыл бұрын
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")
@shubhamwaghilkar42364 жыл бұрын
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
@debasishsahoo34464 жыл бұрын
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)
@sachinpal58233 жыл бұрын
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()
@fazalshaikh47563 жыл бұрын
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"))
@ayushsingh1232 жыл бұрын
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..........")
@ahmadhasan79523 жыл бұрын
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:"))
@ashokgarg86704 жыл бұрын
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()
@anubhavrajpaul99083 жыл бұрын
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()
@ysgaming97432 жыл бұрын
I accept the challenge brother.।
@shivanshutyagi834 жыл бұрын
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")
@tanmaydaga72044 жыл бұрын
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())