Тёмный

Only Masters in Python can answer this 😲  

Harshit Bhai - The HackerxGuy
Подписаться 59 тыс.
Просмотров 289 тыс.
50% 1

Опубликовано:

 

24 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 553   
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
Follow me. Instagram - instagram.com/not_anonymous_01/ Twitter - twitter.com/harshit_bhai_
@vingenesis4538
@vingenesis4538 Год назад
Pls what screen recorder and narrator did you use?
@becarefullyt5922
@becarefullyt5922 Год назад
1 time
@ravikumarkumar1570
@ravikumarkumar1570 Год назад
Hello world.
@Enzo_TheRizzler
@Enzo_TheRizzler Год назад
"You have 5 second to write the answer, but first let me add a timer in the middle of the screen, so you can't see a thing" 🤡
@binariez
@binariez Год назад
Literally
@TGX1
@TGX1 Год назад
+
@TGX1
@TGX1 Год назад
I think he did it so we will view his video twice or thrice and the yt algorithm recommends it more
@lifeeternal8574
@lifeeternal8574 Год назад
😂
@im_sreyas
@im_sreyas Год назад
😹....
@kanuos
@kanuos Год назад
I only know C++, but apparently, I am a Master in Python now.
@arunjoseph108
@arunjoseph108 Год назад
😂😂
@yassinesafraoui
@yassinesafraoui Год назад
Yeah, according to this test that really tells your level
@elmaxiRT
@elmaxiRT Год назад
;
@Dcrafterer
@Dcrafterer Год назад
I mean if you know c++ python is a piece of cake
@Cicada1997
@Cicada1997 Год назад
Lmao, c++ was partly made by a danish though, so fuck you
@Hammish
@Hammish Год назад
Title: Only masters at python will solve this Video: a simple addition question
@Hammish
@Hammish Год назад
@@Anton-kn2yn yeah but what breaks it is the addition
@Reddit2
@Reddit2 Год назад
@@Anton-kn2yn somebody who codes for like 2 days in python knows what break does. it was literally an addition video
@8-bitrage982
@8-bitrage982 Год назад
the code was simple
@babunaik1953
@babunaik1953 Год назад
But the output, only a coder can tell.
@turgutgilgil4562
@turgutgilgil4562 Год назад
😂
@Master-lo5df
@Master-lo5df Год назад
Welcome to next episode of: „Can you count to 8?“
@mirozo
@mirozo Год назад
no. no i cant
@stonksinwestycje5004
@stonksinwestycje5004 Год назад
@@mirozo Me too
@imadahmad9114
@imadahmad9114 Год назад
Apparently you need to be a master of python to see a break after a loop
@StarsOfMinecrafttr
@StarsOfMinecrafttr Год назад
he typed end of the video, this is the trick
@wadehawkins2486
@wadehawkins2486 Год назад
Hellow coder
@mathasus3221
@mathasus3221 Год назад
While : " Oh no you broke me :'("
@user-im4lh9xt7o
@user-im4lh9xt7o Год назад
Lists were invented in 1980 People before 1980:
@szyszak5467
@szyszak5467 Год назад
@@rajeshchukka7142 A definition of "joke" - something said or done to provoke laughter or cause amusement, as a witticism, a short and amusing anecdote, or a prankish act
@Kenno13
@Kenno13 Год назад
@@rajeshchukka7142 who said Python? He said "LIST"
@JMK_245
@JMK_245 Год назад
@@Kenno13 u stupid
@rikthecuber
@rikthecuber Год назад
That got me cracking
@Brian-jg9fn
@Brian-jg9fn Год назад
I’m a random guy getting recommended this vid and now I’m a python master.😎😎
@finger399
@finger399 Год назад
Lol
@ifti3124
@ifti3124 Год назад
Damn the title should have been "Even a newbie can solve this"
@littlegliscor8547
@littlegliscor8547 Год назад
True
@chefaku
@chefaku Год назад
I thought it was a programming question and in the end it was just adding numbers ¿‽
@idontknowanygoodnames1498
@idontknowanygoodnames1498 Год назад
it was the break statement
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
Although the program was nothing but based on simple addition, but then also many were wrong to answer this.
@pandipatipavan3804
@pandipatipavan3804 Год назад
@@harshitbhaihackerxguy Bro you are trying bring such good basics. Wow wonderful and Hats off to your dedication 👏 Try to bring such interesting things in the form of Videos than in the form of Shorts it if is possible 🙏 Thank You so much and All The Best 👍❤️🎉🔥
@tathyagarg2018
@tathyagarg2018 Год назад
@@harshitbhaihackerxguy This is nothing that only 'masters' can solve. It's basic addition.
@ThatOneRobloxDev
@ThatOneRobloxDev Год назад
They both equal 8, and because of the break, it's stops the loop after the if statement has printed "Hello Coder"
@yzabeast1
@yzabeast1 Год назад
never coded in python before but apparently I am a master at python now
@blobstudio
@blobstudio Год назад
Jsyk, why its not infinitely repeating is because of the break. Break automatically ends the loop.
@imobcode707
@imobcode707 Год назад
It will print "Hello Coder." at once
@N1ghtM0ntagna
@N1ghtM0ntagna Год назад
i thought it was gonna be a super difficult question so i started thinking out of the box. then i realized that he asked for a completely different thing
@acepyopi3531
@acepyopi3531 Год назад
🤣
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
😲
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
What you think? What gonna be tough in python 🤣 POV : It can be tough for those who hates maths, if I would have twisted this one to a tough math question of entrance levels
@Hallandfan847
@Hallandfan847 Год назад
POV: indian
@MiguelGebremedhin
@MiguelGebremedhin Год назад
After this video at an interview: yeah I’m sort of a master at Python
@RebeccaHere
@RebeccaHere Год назад
hahahhahah might get in to google with this one
@sakshikumari3620
@sakshikumari3620 Год назад
The answer will be only only 1 time (Hello coder) not more than one time becoz you used break so that why (while loop ) don't run may be nicely .
@MasonAttano
@MasonAttano Год назад
For anyone wondering, the "break" statement exits a loop. So in this case, the "print" will only output the message once.
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
Correct, break statement was only the twist in this video
@xyz-835
@xyz-835 Год назад
Of course it will print once, there's a break.
@arushdixit2792
@arushdixit2792 Год назад
It was printed once as we used break command. It simply takes us out of the loop if condition is met.
@smieszkipikczers1568
@smieszkipikczers1568 Год назад
Only masters in python knows break statement xDDD
@the_syskill5814
@the_syskill5814 Год назад
;P
@guesttox
@guesttox Год назад
your_comment = True
@the_syskill5814
@the_syskill5814 Год назад
Completed with 348723847298347982347 warnings and -1 errors
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
OMG that's insane
@FirmanPhntom68
@FirmanPhntom68 Год назад
the answer is "hello coder." This is because the sum of a1 is equal to a2 which is 16 so that if it is equal to 16 it will display "Hello Code." as a result of print.
@faroukgo4988
@faroukgo4988 Год назад
16 ? You mean 8, right
@sharpr2459
@sharpr2459 Год назад
I don't even code in Python and I knew this.
@josephzamora2676
@josephzamora2676 Год назад
Doing this to slow your code down is like adding invisible words to make your essay longer
@sarathsurendran2706
@sarathsurendran2706 Год назад
Come on everybody....... Look at the while loop intend....." break " is used inside the" if " condition. If a1=a2 the break will execute...... If break is used inside the while loop intend it will print " hello coder " infinite time unless it met a condition.
@AndrewX981
@AndrewX981 Год назад
It will print hello coder once Because 8=8 equal true
@zanza8197
@zanza8197 Год назад
I dont even program in python, Mostly C++, But i guess im now a master in python.
@skilz8098
@skilz8098 Год назад
Same here. I did a little bit of Python when I started learning about Neural Networks, A.I. Programming and Machine Learning. Similar to you I've come from C/C++ doing 3D Graphics programming. Python is easy to pick up but can be a pain at times due to old C/C++ habits...
@aktrickscreation
@aktrickscreation Год назад
Two variables values are equal so the given condition is true the while loop condition is satisfied so the the print statement is gives Hello coder.
@WavySoldierGuyPS
@WavySoldierGuyPS Год назад
Fuck, even with my 5 years of Python experience and my certifications I can't answer this simple addition with a timer in the middle of the screen blocking my view!
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
5 seconds are also more to this simple question, because I am making the question along with the video, so while I was typing the code you should get the answer there only once I finished writing it.
@WavySoldierGuyPS
@WavySoldierGuyPS Год назад
@@harshitbhaihackerxguy Thats one way of doing it but it's not necessarily gonna be going like this with everyone. Thats one thing a developer has to learn and understand is that all of their clients (in this case, viewers) are different. Adapt.
@skilz8098
@skilz8098 Год назад
It'll only print once since there is a break statement to exit out of the loop. If the break wasn't added, it would then print infinitely.
@xploitstech
@xploitstech Год назад
hello coder just once
@IchorDragon
@IchorDragon Год назад
I'm just a web dev, but now I become py master :D
@daniquederidder4663
@daniquederidder4663 Год назад
first time I felt like a python master, the five seconds really did it!!
@ItzShinePlayz
@ItzShinePlayz Год назад
because after 1 loop you said break when break means you are exiting the loop before if loop loop again.
@Maskrade
@Maskrade Год назад
Just once, as the condition will be true due to the numbers being the same, the condition is True, and it prints the text and then does a *break* exiting the loop and terminating the program, in this case.
@Maskrade
@Maskrade Год назад
this is actually just a simple question on loops, not really python only xd
@carloshenriquefc
@carloshenriquefc Год назад
If the values ​​are the same just put the same variable and the value as a=b=1 and you can make it much smaller 🙂
@OrangeMintz
@OrangeMintz Год назад
even someone with no knowledge of python can tell exactly the output of this program Thank u for giving us the title Master 🙃
@qondonyon
@qondonyon Год назад
import numpy array = numpy.arange(0, 100, 1) array = numpy.reshape(5, 5, 4) print(array[4, 2, 0])
@gingerphoenix10
@gingerphoenix10 Год назад
I mean, since the timer was in the middle of the screen, I had to guess, and I didn’t think the output would be nothing, so the only other option is “Hello Coder.”
@gersimuca
@gersimuca Год назад
prints "Hello Coder" but you can make it more tricky
@imluminova
@imluminova Год назад
pov: you just started learning to code
@hadawardgz
@hadawardgz Год назад
You don't need to be a Python master for this, it's a matter of mathematical logic it's not something unique to python
@rextega2933
@rextega2933 Год назад
Simple and easy. Just add the numbers you gave each variable. And of course it would print hello coder
@praveencqr
@praveencqr Год назад
If the person who provides the correct answer to this question is a master of Python, then there must be one million masters in the world as of right now.
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
True ❤️
@hariskakakhel431
@hariskakakhel431 Год назад
I am a certified python master now 😆🔥
@adithyavarman1782
@adithyavarman1782 Год назад
Wtf this is way too easy, i am just a beginner python programmer in 12th grade and this was the question in one of my. exams
@storyteller7033
@storyteller7033 Год назад
Actually, as soon as you realize the declare value. You don't need 5 second
@RafaelRabinovich
@RafaelRabinovich Год назад
Of course both additions are the same. It prints.
@sanjai784
@sanjai784 Год назад
It matters whether the break statement is inside If statement or inside while statement If it is inside if statement, No output If it is inside while statement,Hello world
@skilz8098
@skilz8098 Год назад
No, it will still only print once. The print statement will be executed on the first iteration within the loop since the condition evaluates to true. Since the break is after the print statement it doesn't matter if the break is within the if block or outside of it at the end of the scope of the while loop. This will still cause it to break from the loop. I'm not 100% sure about Python but I do know that the interpreter is based on C and I know C/C++. Try putting a break or continue statement within a standalone if statement. You should get compiler warnings or errors if break or continue is found outside of either a while or for loop, but this could be implementation dependent from one compiler to the next. Typically break and continue are control flow directives for while and for loops and do not effect if statements. Now, if statements can be used to determine if a break or continue should be called only when you're in a loop.
@brentgpersonal7393
@brentgpersonal7393 Год назад
a1 and a2 are eight so the if statement got True. Because the if statement has == which it returns true when two objects are the same. Of course when if statement has true, it can run the code below it. Which it reaches built-in function called print() and then outputs Hello Coder into terminal/cmd.
@ZeroSleap
@ZeroSleap Год назад
The objects a1 and a2 technically shouldnt be the same.But their values which was evaluated was.
@davidglass4876
@davidglass4876 Год назад
Children who are taking their first coding class can answer that. Masters use comprehensions and pythonic syntax like “in” this is for beginners not masters
@python_studio
@python_studio Год назад
It will print Hello Coder. Only one time
@feistyparrot6618
@feistyparrot6618 Год назад
The code inside the while loop got executed only once because u added the break keyword In other words, the code inside the if statement got executed once but then when the break keyword got executed, we broke out of the while loop Resulting in the code inside the while loop run once
@random_good_guy
@random_good_guy Год назад
Due to break statement even if the condition is true the loop will terminate after first execution. Correct me if I am wrong...
@kingdededelicious
@kingdededelicious Год назад
You're correct.
@Grapejellyification
@Grapejellyification Год назад
I think this was a bit too easy, to spice it up the if statement condition should've been "if a1 is a2:"
@harry8912
@harry8912 Год назад
I got Hello Coder by adding those variables and since they’re the same value a1==a2 so it prints. That’s my thought process.
@sudarshanjyotibhuyan789
@sudarshanjyotibhuyan789 Год назад
Masters? Really? I don't even know how to write a python code and still solved this.
@thewalkingsea
@thewalkingsea Год назад
Only pro programmers know that if its not true and you just deployed you are now in debt for a long long time
@thecoolnewsguy
@thecoolnewsguy Год назад
Ah yes, only MASTERS! So, we are all masters in python now!
@bernardogameplaysemais8191
@bernardogameplaysemais8191 Год назад
So apparently the output is gonna be "Hello Coder." Because a1 == a2 is true by doing the math
@andromeda6798
@andromeda6798 Год назад
Bruh ☠️
@cesara.mayora2414
@cesara.mayora2414 Год назад
"Only masters in Python can answer this" 💀
@nghiapham6000
@nghiapham6000 Год назад
OMG!!! I've just learnt python yesterday, am I a python master ??
@niltorrelles
@niltorrelles Год назад
try '!=' inside If condition , if you have the balls
@ElSpoon
@ElSpoon Год назад
How is your keyboard not broken? If I slammed on all my keys like that over and over while coding, my keyboard would stop working pretty quick.
@laxmipriyapradhan9373
@laxmipriyapradhan9373 Год назад
The output is Hellow coder
@steilcacciatore7194
@steilcacciatore7194 Год назад
Hello world will be printed only after condition becomes true that a1=a2 for sim of the variables and while loop breaks after condition met
@BavlyOfficial
@BavlyOfficial Год назад
Console: Hello Coder
@lakshmibabu3602
@lakshmibabu3602 Год назад
The output is: hello coder
@Guy_Sandler
@Guy_Sandler Год назад
Understanding what the question is was harder then the solution
@crypto_era_official
@crypto_era_official Год назад
As a1 == a2 Condition satisfied ... So output is hello coder :) It will print at once ... Due to break
@reconstructionofreligioust4070
Please make a best python course Pleased please 🥺
@thetruebluesingaporeankid
@thetruebluesingaporeankid Год назад
tbh this is ridiculous. This is BASIC level python ngl
@mesaber86
@mesaber86 Год назад
Typed so slow i had to skip video of boredom.
@LearnAndEarnTV
@LearnAndEarnTV Год назад
If u know basic programming u'll be able to answer this
@kingdededelicious
@kingdededelicious Год назад
I only know how to add, subtract, multiply, and divide and according to this video I'm a Python master now.
@idoredid3831
@idoredid3831 Год назад
The answer is Hello Coder. Because every 2 variables have the same value. Because they add to a1 A+C+E and A2 has B+D+F and A=B,C=D, E=F. The sum of each variable is equal to the other variable which returns a True expression and prints and outputs "Hello Coder".
@dexterdingcol1674
@dexterdingcol1674 Год назад
It just one hello coder because a and b are both number 1 , same to the others it just like , if (1+2+3 ) == (1+2+3) : print ('hello coder').
@dadqqader
@dadqqader Год назад
Have my downvote and kindly never do this again. Thank you.
@oliverli9630
@oliverli9630 Год назад
the real question is: why does the program stop after printing out "Hello Coder", rather than getting frozen?
@sirmonke8946
@sirmonke8946 Год назад
because of the break?
@oliverli9630
@oliverli9630 Год назад
@@sirmonke8946 awwwe! lousy me, haha
@user-sf6dq1tj3q
@user-sf6dq1tj3q Год назад
Variation Can you solve this python code? a=1 b=2 while (a!=b): print(a, b) if(a:=b): print(a, b) b=a-b print(a,b)
@Oh-pl8xe
@Oh-pl8xe Год назад
when i saw the fire emoji, i knew it was a childish thing. However i did solve it
@imsobasic
@imsobasic Год назад
the a1 = 8 the a2 = 8 a1 = a2 a1 == a2 printing hello coder what is the question bro? xd
@chronosVR.2763
@chronosVR.2763 Год назад
it will infinitely print "Hello Coder." as a1 and a2 are the same.
@xE92vD
@xE92vD Год назад
This is for "masters"? Are you kidding me? This is like the basics.
@gadfay8463
@gadfay8463 Год назад
Hi! Could u make an exemple with matrix? I mean a1= (a,b,c,d) .....
@techdude2006
@techdude2006 Год назад
"Hello Coder." only once
@user-iu2tv9fh6m
@user-iu2tv9fh6m Год назад
That's Will Return Hello Coders cause in this loop returns true and also in if statement also be true after all then U get Hello Coders. Warning ⚠️ - At the end True Breaks so Guys put continue on replacement of break and see magic and do it on your own risk 😅
@skilz8098
@skilz8098 Год назад
You don't even have to replace it with continue, you can just omit the break altogether and it have the same effect.
@COSFAME18
@COSFAME18 Год назад
Hell coder will get printed 🔥🔥
@COSFAME18
@COSFAME18 Год назад
Hello*
@thecoolnewsguy
@thecoolnewsguy Год назад
Lol hell coder
@minhgia2312
@minhgia2312 Год назад
I just a normal Java coder but after i watched full this video , i was be a Master of python
@Mingming_Studio
@Mingming_Studio Год назад
Let me simplify this code: print('Hello Coder.')
@alextoppo3958
@alextoppo3958 Год назад
I can't see the break in the end bro
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
There's a break state ment used to break the loop.
@hardeepb08
@hardeepb08 Год назад
This dumb developer is like: i will not show you the code but give me the answer
@tophat593
@tophat593 Год назад
Turns out the answer was "don't recommend channel"
@Sajinthakur14
@Sajinthakur14 Год назад
Same answer we will get because of they you taking values are same so that's why they are answer is also same
@disguisedpuppy
@disguisedpuppy Год назад
Only good mathematicians can answer this*
@Backbencher77777
@Backbencher77777 Год назад
Mechanical engineer: 😒 wt the fk
@Yuusaku-Marlowe
@Yuusaku-Marlowe Год назад
Bruh this even not hard
@Yuusaku-Marlowe
@Yuusaku-Marlowe Год назад
@???????????? no i mean this just a simple question, may be? And it maybe a basic code
@harshitbhaihackerxguy
@harshitbhaihackerxguy Год назад
These all are basic questions. You have to wait for difficult questions to watch which I will post maybe 2-3 days later
@mdshadansari3319
@mdshadansari3319 Год назад
Hello coder 🙃👏
@Nerik
@Nerik Год назад
.... Remove that "break" and will we see it. :)
@codewithnor7866
@codewithnor7866 Год назад
A1 =8 A2 = 8 If a1 == a2: The Statement is true.
Далее
Compiled Python is FAST
12:57
Просмотров 99 тыс.
ШАР СКВОЗЬ БУТЫЛКУ (СКЕРЕТ)
00:46
If __name__ == "__main__" for Python Developers
8:47
Просмотров 383 тыс.
5 Useful Dunder Methods In Python
16:10
Просмотров 53 тыс.
Intro to Competitive Programming
11:41
Просмотров 763 тыс.
Dictionary in Python
12:24
Просмотров 1,3 млн
Why I Don't Use Else When Programming
10:18
Просмотров 1,2 млн