Тёмный
No video :(

#12 Python Tutorial for Beginners | Number System Conversion in Python 

Telusko
Подписаться 2,4 млн
Просмотров 1 млн
50% 1

Check out our courses:
Enterprise Java Spring Microservices: go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com...
Coupon: TELUSKO20 (20% Discount)
Udemy Courses:
Spring: go.telusko.com...
Java Spring:- go.telusko.com...
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusk...
In this lecture we are discussing about Number System and its conversion:
In programming, the number system is a way of representing numbers using different bases.
The most commonly used number systems in programming are the decimal (base 10),
binary (base 2), octal (base 8), and hexadecimal (base 16) systems.
a)Decimal system: This is the number system we use in our everyday lives. It uses 10 digits (0-9)
to represent numbers.
b)Binary system: This system uses only two digits (0 and 1) to represent numbers. It is commonly
used in computer systems because digital devices work with binary signals.
c)Octal system: This system uses 8 digits (0-7) to represent numbers. It's often used in computer programming
because it's a compact way to represent binary numbers.
d)Hexadecimal system: This system uses 16 digits (0-9 and A-F) to represent numbers. It's commonly used in computer programming
and web development to represent colors and memory addresses.
Converting different number systems:
Decimal to binary: Divide the decimal number by 2 and write down the remainder. Keep dividing by 2 and writing down the remainders until
you get to 0 at quotient. Then, read the remainders in reverse order to get the binary number.
e.g 51
2|51 |1
2|25 |1
2|12 |0
2|6 |0
2|3 |1
2|1 |1
|0 |1
reverse order: 110011
Binary to decimal: Multiply each digit in the binary number by the corresponding power of 2
(starting with 2^0 on the right). Add up the results to get the decimal number.
e.g 11011
2^4 2^3 2^2 2^1 2^0
1*16 1*8 0*4 1*2 1*1
16+8+0+2+1=27
It is Same for octal and hexadecimal(Not in this lecture but for your knowledge)
Decimal to octal: Divide the decimal number by 8 and write down the remainder. Keep dividing by 8 and
writing down the remainders until you get to 0. Then, read the remainders in reverse order to get the
octal number.
e.g
51
8|51 |3
8|6 |6
8|0 |0
reverse order: 360
Octal to decimal: Multiply each digit in the octal number by the corresponding power of 8 (starting with 8^0 on the right).
Add up the results to get the decimal number.
e.g
360
8^2 8^1 8^0
3*64 6*8 0*1
192+48+0=240
Decimal to hexadecimal: Divide the decimal number by 16 and write down the remainder. If the remainder is
greater than 9, replace it with the corresponding letter (A-F). Keep dividing by 16 and writing down the remainders
until you get to 0. Then, read the remainders in reverse order to get the hexadecimal number.
e.g
51
16|51 |3
16|3 |3
16|0 |0
reverse order: 33
Hexadecimal to decimal: Multiply each digit in the hexadecimal number by the corresponding power of 16 (starting with 16^0 on the right).
If a digit is a letter, replace it with the corresponding value (A=10, B=11, etc.). Add up the results to get the decimal number.
e.g
33
16^1 16^0
3*16 3*1
48+3=51
Only for Interest (Not in this lecture)
Converting from octal to binary and binary to octal can be done using a simple method.
Conversion from Octal to Binary:
To convert an octal number to binary, we can simply replace each digit in the octal number with its equivalent three-digit binary number.
Here are the octal-to-binary conversions for each octal digit:
0 = 000
1 = 001
2 = 010
3 = 011
4 = 100
5 = 101
6 = 110
7 = 111
For example, to convert the octal number 725 to binary:
7 = 111
2 = 010
5 = 101
So, 725 in octal is equivalent to 111010101 in binary.
Conversion from Binary to Octal:
To convert a binary number to octal, you can group the binary digits into sets of three (starting from the right)
and replace each set with its equivalent octal digit. Here are the binary-to-octal conversions for each set of three binary digits:
000 = 0
001 = 1
010 = 2
011 = 3
100 = 4
101 = 5
110 = 6
111 = 7
For example, to convert the binary number 101011011 to octal:
1 0 1 0 1 1 0 1 1
|- - - ||- - - | |- - - |
5 3 3
we get 533 in octal.
Use of method in python to direclty convert number system:
Decimal to binary: bin()
e.g
bin(51)
'0b110011' # 0b represent binary formate
binary to decimal: int()
e.g
int('0b110011',2)
51
Decimal to octal: oct()
e.g
oct(51)
'0o63' # 0o represent octal formate
octal to decimal: int()
e.g
int('0o63',8)
51
Decimal to hexadecimal: hex()
e.g
hex(51)
'0x33' # 0x represent hexadecimal formate
hexadecimal to decimal: int()
e.g
int('0x33',16)
51

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

 

5 июл 2018

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 879   
@Rajadahana
@Rajadahana 2 года назад
Decimal - int( ), Binary - bin( ), Octal - oct( ), Hexa Decimal - hex( ) The important thing is not only you can convert between decimal and the respective number system but also between any number system. For example - between Binary and Octal, Hexa Decimal and Binary etc.
@JoeyFlowers
@JoeyFlowers 6 лет назад
I love how in depth you go with each topic, rather than just brushing over it.
@josephkimogele9988
@josephkimogele9988 4 года назад
very awesome series, I was so confused when I started learning python because of all the information on youtube that is not organized and most of the videos weren't as helpful, thanks for the series I enjoy learning every day, cant wait to finish and start my career as a python developer. thank you.
@abhishwetkumar
@abhishwetkumar 5 лет назад
You just refreshed my Engineering class ...... wow Navin Impressed with this crah course on decimal to binary and vice-versa....
@aparajitadevidasi7823
@aparajitadevidasi7823 5 лет назад
here, (a//4+12**3) = 1731which is less than 2000. hence first condition is true. (b%4!=0) is false since b%4 is 0. and finally since the and operator is used answer is "false"
@praveenkumar-jx8iz
@praveenkumar-jx8iz 4 года назад
Correct√
@seshu6617
@seshu6617 4 года назад
@@praveenkumar-jx8iz yes correct bro
@muhammadibtisaam2115
@muhammadibtisaam2115 4 года назад
second condition samaj nahi aahe
@abhinavkuruvilajoseph9274
@abhinavkuruvilajoseph9274 4 года назад
But in the question it is not given to print so no output will be there
@shiva53j7kandagatla6
@shiva53j7kandagatla6 4 года назад
@@muhammadibtisaam2115 b%4 =0 because if we use % we get a reminder and then the condition given is 0 not equal to 0 that's why it is false
@alittlecoding
@alittlecoding 6 лет назад
a//4=3 because integer division. b**3 = b.b.b = 1728 So 1731 < 2000 is true. b%4 = 0 it's the remainder. So b%4 != 0 is false. So finally (true and false) is false. X = false But the output Will be nothing, if we don't print x.
@neruvan2368
@neruvan2368 6 лет назад
wow
@alittlecoding
@alittlecoding 6 лет назад
Sai Siva 😊
@siddharthpathak9679
@siddharthpathak9679 5 лет назад
Cool bro good
@anjumishra7237
@anjumishra7237 5 лет назад
I also got the same answer.
@gubbalabhaskaradurgaprasad5286
@@anjumishra7237 yes
@muhammadmusa8899
@muhammadmusa8899 4 года назад
I'm loving python after I started watching your videos... Thank you for making me love programming
@arunavedula442
@arunavedula442 3 года назад
Thank you...Learnt a lot from watching your videos on python. You’ve managed to explain the concepts with so much clarity and without making it boring. Looking forward to more learning.
@chinmaydas4053
@chinmaydas4053 6 лет назад
Sir you have discussed very important basic concepts number systems.. and now your representation with good slides picture is nice 👍👍.. many thanks 🙏..
@dragonff6986
@dragonff6986 Год назад
What are you doin now brother..IAM learning python now
@dragonff6986
@dragonff6986 Год назад
Is this enough to go0
@RS-hu6co
@RS-hu6co 3 года назад
a = 15 b = 12 x = (a//4+b**3)
@priyanshkumar_iitd
@priyanshkumar_iitd Год назад
Yes .. verified . Thanks
@krishnakingdom3543
@krishnakingdom3543 Год назад
You had done a mistake here. 12**3=1728 but you worte here 1731. But i agree with your answer.
@sekarmukilan4627
@sekarmukilan4627 Год назад
@@krishnakingdom3543 yes, I agree that but there will be no output because u r just assigning some value to x if u print(x) the output will be false
@sufiyanmogal1527
@sufiyanmogal1527 2 года назад
The Quiz Answer is False Because the first condition (15//4 + 12**3)
@kunalverma1706
@kunalverma1706 4 года назад
No one is teaching you this in programming tutorials. Thanks Sir
@neelamgupta2505
@neelamgupta2505 4 года назад
Thank you sir! I wanted to learn programming but not enough interested and was being bored by programming, and you increased my interest and now I am enjoying learning.
@sairajdas6692
@sairajdas6692 6 лет назад
I know all these but I still watch because I love your videos .
@rajkumarrathore6573
@rajkumarrathore6573 3 года назад
Wow ago many times.
@shabalbaig9544
@shabalbaig9544 5 лет назад
I love your videos sir. I'm not even skipping the ads cz it might help
@mrexe7944
@mrexe7944 3 года назад
'0b11111' is the binary format of 31. '0b110100' is the binary format of 52. '0b1000001' is the binary format of 65.
@mr.gamingthalapathy3191
@mr.gamingthalapathy3191 Год назад
What is the binary format for 110011010
@nandhiniruby-xr2mu
@nandhiniruby-xr2mu Год назад
I am also get the answer
@shashankshekharsingh9336
@shashankshekharsingh9336 5 лет назад
Respect earned
@THAFUYR
@THAFUYR 4 года назад
Agreed
@okimeobia
@okimeobia 4 года назад
me too....he's good
@cartoons__for__kids_Hindi
@cartoons__for__kids_Hindi 4 года назад
Mission Passed Respect+
@adityabhambhani207
@adityabhambhani207 3 года назад
sir yours are the only quality programming videos i've come across on youtube......i have learnt a great deal from you and your videos , i have great interest in computers and you have taken it to another level ....
@sufiyanmogal1527
@sufiyanmogal1527 2 года назад
Homework Completed 😀 Conversion of decimal to binary 31 - Ob11111 52 - Ob110100 65 - Ob1000001 And the conversion of binary to decimal Ob110011010 - 410
@badrisuvarna2705
@badrisuvarna2705 4 года назад
In this lockdown u made me interest to learn the programming sir...thank you very much
@surojbera
@surojbera 3 года назад
Java guru has now become a Python guru too. Thank you Navin sir.
@Asuram23
@Asuram23 2 месяца назад
Mister, thank you so so much! I am preparing on Python exam and I wish our teacher were half as good as you! You explain everything so well, than I understand instantly or rewatch if I do not. The rest is then practice and difficulty that needs to be increased. I recommended you to my classmates, I hope they benefit from your lectures too! Never stop teaching, you are born to do it
@shawndurbs
@shawndurbs Год назад
Wow. I love your teaching. I tested my self on a lot of binary equations both ways and was getting all of them correct. I’m also a total beginner. Thank you.
@shivampanda4552
@shivampanda4552 4 года назад
hey man you are doing a great job these kind of classes are really helpful thanks a ton man!
@shankargope2475
@shankargope2475 10 месяцев назад
That's a wonderful session regarding number system conversion to one from another 👌 a = 15 b = 12 x = (a // 4 + b ** 3) < 2000 and (b % 4 != 0) here b ** 3 = 1728 and a // 4 = 3. So, (a // 4 + b ** 3) = 1731 which is < 2000 --> True b % 4 = 0 remainder so, b % 4 != 0 is False. so output of x is False decimal to binary conversion --> 31 - 0b11111, 52 - 0b110100, 65 - 0b1000001 binary to decimal conversion --> 0b110011010 - 410
@RozaLinda281
@RozaLinda281 6 лет назад
a //4 = 15 // 4 =3 and, b**3 means b power of 3 = 12^3 = 1728 so, (a // 4 + b**3) = 1731 the first condition is true because 1731 < 2000 but the second condition is false because b%4 = 12%4 = 0 so X is false
@danielkamau8436
@danielkamau8436 4 года назад
oooh! thanks a lot tutor for helping continue scoring more as a junior learner in this promising field.
@shruthiraykar6808
@shruthiraykar6808 6 месяцев назад
Best tutor ever ❤ i love watching your videos Here are the answers to assignments - Binary value of 31 is 11111 52 is 110100 65 is 1000001
@aarushrathore4134
@aarushrathore4134 4 года назад
You are the best python teacher that i,ve ever found!!
@user-jm8nd8em8w
@user-jm8nd8em8w 6 месяцев назад
God bless you for giving me a knowledge on python like this. 😊❤
@MahendraKumar-sh9mz
@MahendraKumar-sh9mz 4 года назад
Way of explination ,look and feel ,command on subject and the output of the video by your team is awesome navin..go on..I am very much thanqful to you
@mitchell_the_great
@mitchell_the_great 3 года назад
Yes your videos are too good and helpful for beginners
@ShahidShaikh-lv4wp
@ShahidShaikh-lv4wp 5 лет назад
x=(a//4+b**3)
@yashkhanna2602
@yashkhanna2602 6 лет назад
done the binary conversation. 31=11111 21=10101 52=110100 65=1000001 and 0b110011010=410 and >>> a = 15 >>> b = 12 >>> x = (a//4+b**3)>> x False reason- a//4 will give the value 3 and 12*12*12=1728 so first expression will become 1731 which is less than 2000 i.e. true and the second expression will give the remainder value as 0(because % means to find the remainder) which is false as expression says it is not equal to.So the whole expression becomes false.
@abdikarimdhanaane7774
@abdikarimdhanaane7774 3 года назад
right answers on the exercise given by our sir 'Navin'. thank you a lot.
@abhilashdevarakonda5991
@abhilashdevarakonda5991 6 лет назад
done the binary conversation. 31=11111 21=10101 52=110100 65=1000001 and 0b110011010=410
@dammalapatibhanu9442
@dammalapatibhanu9442 6 лет назад
31 binary format :11111 o :37 h:1f 52 binary format:110100 o:64 h:34 65 binary format:1000001 o:103 h:41
@gouripeddipawansreekar1752
@gouripeddipawansreekar1752 4 года назад
@Omkar Jadhav sir its 101 not 103 ...logic was take the 3 sets 0f digits from the last ...the sets came as 001,000,001 then the octal is 101
@srikkar
@srikkar 5 лет назад
Awesome videos ... not at all feeling bored while learning which we feel usually . The way you are explaining and the graphics behind you are making me focused Thanks.
@-pamarthidhanyateja
@-pamarthidhanyateja 3 года назад
according to the BODMAS rule for the given values a=15 b=12 x=(a//4 +b**3) and (b%4!=0) in the above we need to consider in the bracket first after then we need to go for power b**3=1728 a//4=3 a//4+b**3=1731 it is less than 2000 so the bool value is true for this then we need to do for another value which is b%4!=0 b%4=0 it is equal to zero so its false therefore x = True and False x = False.........
@shaahidhabanu4869
@shaahidhabanu4869 5 лет назад
Really helpful and can understand well. Good job telusko
@Rohan-cw9gn
@Rohan-cw9gn 3 года назад
Instead of giving money to the useless university teachers we should give that money to this youtubers what a superb teaching yaar loving it
@artokilponen6989
@artokilponen6989 Месяц назад
I like this course, thanks :) For the final question there, the result is false. Others below (ok, didn't read them all) have explained that how boolean system works and have right results, but for the manual logical thinking, I'd say it is a good way to start from "what's useless?" For example, since we have here operator AND, we know that _BOTH_ sides needs to be TRUE, so if even one is FALSE, the whole result is FALSE. Therefor, you can begin to prioritize things. Pick the part that's easiest for you, if you happen to get a FALSE there, the rest is totally irrelevant. So for example, here we can pick the first part. a // 4 is 3 and 12**3 = 12^3 = 1728 and 3 + 1728 = 1731, which is less than 2000, so we have here one part of the AND being a FALSE. And thus the rest is irrelevant, no matter how complex stuff you put there, because FALSE AND absolutely whatever is FALSE. Now yeah, sure, I do encourage you also to understand how to do every single part of this, but for purely the manual solving, try to first consider what's relevant.
@jessdee1467
@jessdee1467 3 года назад
What are the correct answers to the homework you gave us? I would like to check my answers. Thank you for this video, it really helped me a lot!
@priyanshkumar_iitd
@priyanshkumar_iitd Год назад
Yo can check by runing the code in IDLE , PyScripter , PyCharm or Sublime Text.
@padminikalburagi1783
@padminikalburagi1783 4 года назад
a=15 b=12 X= ( a//4+b**3)
@sumidasdutta582
@sumidasdutta582 Год назад
Hometask done...bin(31)=0b11111, bin(52)=0b110100, bin(65)0b1000001, the output of x is false as 1731
@JaiHanuman344
@JaiHanuman344 Год назад
Hi Navin, I am a serious fan of you and your videos and the way you teach and finally smartly say 'bye bye'. It's like I am stick with you like glue. Can you please help me to be a python Master.
@xihadityajaiswal8797
@xihadityajaiswal8797 6 месяцев назад
Amazing tutorials Point to point explanation ❤
@radhamanohar4540
@radhamanohar4540 6 лет назад
Sir, for octal number you can use "0" instead of "0o" i.e. 0o31==21; 031==25
@pubgqueen2230
@pubgqueen2230 3 года назад
Huge Respect for You Sir. I wish if you would be my programming teacher when i was doing engineering. Thanks i have started learning it again. Now. I am at this video.
@Abhilash_Jose
@Abhilash_Jose Год назад
x=(a//4+b**3)
@GMENavneetPiyushDhal
@GMENavneetPiyushDhal 4 года назад
you have the best python video till now i have seen and ur way of teaching is incredeble thankyou
@mounikak3818
@mounikak3818 3 года назад
chala thanks andi meeku me videos chala help avtunay for beginners
@nishantjha6456
@nishantjha6456 4 года назад
Please make more videos like this, it was very interesting
@aarjavjain2866
@aarjavjain2866 Год назад
sir you are awesome its just great to have you, i have my cs exam the day after tomorrow and I guess its going to be awesome
@RKS6893
@RKS6893 5 лет назад
Fantastic stuff and presentation, high energy
@bosnianphantom480
@bosnianphantom480 9 месяцев назад
7:15 or you can write power versions of number 2 above each and every digit like I do, for example you have 1101 and you can write, 1, 2, 4, 8 above those digits
@preetibaddi2239
@preetibaddi2239 4 года назад
Learning in corona pandemic! Thanks very much sir lessons are indeed very Informative 🙌🏻
@dhanushraju4062
@dhanushraju4062 4 года назад
is there similar video explaining without builtin function?
@niki4425
@niki4425 9 месяцев назад
if you want to convert from one system to another. you can use function for ex: hex(int('1010',2)) in the output: oxa
@prathapkgprathu8808
@prathapkgprathu8808 Год назад
Its possible to convert floating value to binary?? for example 23.5 to binary???
@dammalapatibhanu9442
@dammalapatibhanu9442 6 лет назад
quiz answer is =False reason : the operation is done based on operator precedence first it evaluates the operations in the braces and checks for the conditions. 31 binary format :11111 o :37 h:1f 52 binary format:110100 o:64 h:34 65 binary format:1000001 o:103 h:41
@SohelRanaAnsari
@SohelRanaAnsari 5 лет назад
Ans- False.... Bcz b=12, when divided by 4 reminder is 0. b%4 means reminder value.. but here not 0... Bcz its and case so to be true both should be right.
@viplawganguly3256
@viplawganguly3256 5 лет назад
Thanks for this sir...honestly saying I thought Python is not for me I can't learn ,bcoz I am not from coding background but by your videos I got some confidence ...
@medasbabu
@medasbabu 3 года назад
Perfecto, very clear explanation of binary, trying it on a book, really helps in better understanding, thank you reddy garu :)
@parwaagrawal
@parwaagrawal 3 года назад
@Telusko , Navin sir your videos are Just amazing , Hats off to you sir 🙏🏻
@mannemsrikanth3655
@mannemsrikanth3655 5 лет назад
Answer for Quiz:: a=15, b=12 1st condition =>> (a//4 + b**3) < 2000 (15//4 + 12^3) =(3+1728)=1731 ,,,,here 1731 < 2000 ==> true ------------------------------------------------------------- 2nd condition ==> (b%4! =0) (12÷4 ! =0) = (0!=0) ==> false ((Above one is modules so we have to take reminder only)). Now X = true and false = false. ((In 'and' trueth table one condition is false then result will be false)) ------------------------------------------------------------- => Converting decimal to binary for 31 = 11111 for 52 = 110100 for 65 = 1000001 => Converting binary to decimal 110011010 = 410 2^8 2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0 256 128 64 32 16 8 4 2 1
@satishnayunipati8470
@satishnayunipati8470 5 лет назад
bib(25)=0b11001,,,,,,,,,,,,,,,,,,,sir here "b" represent binary and11001 represent equivalent weight of 25,,,,,,,,,,then what does the "0" represents ,,.before "b"?????
@SantoshRaj-hx7rx
@SantoshRaj-hx7rx 5 лет назад
'0b' -> stands for binary numbers, '0c' -> stands for Octa, 0x-> stands for Hexadecimal.
@anushagujjeti5083
@anushagujjeti5083 3 года назад
Int- It is constrained by the amount of memory your system has Float - Which designates a float number where it specifies with decimal point Complex - which includes both real part + imaginary part String - These are the sequence of character data
@khushijha5474
@khushijha5474 2 года назад
Last qs ans - True Reason - - - Y
@anandvaish4256
@anandvaish4256 4 года назад
Very helpful easy to understand for beginners . Sir thanks for such a outstanding series of *PYTHON*
@anandmohan1063
@anandmohan1063 2 года назад
Thanks for explaining the number formats (Hexa, octa...). Got remember the childhood classes
@harshavardhanreddy6558
@harshavardhanreddy6558 3 года назад
Oh my god, this video reminds my childhood thanks bro :)
@nvh3183
@nvh3183 Год назад
Really fun in learning, engineering didn't teach how to use this
@rohanram7197
@rohanram7197 5 лет назад
We all owe you sir Thanks a lotttt
@rohanthomasjoseph9602
@rohanthomasjoseph9602 5 лет назад
Thanks for the tricks and techniques that you have used.
@rohitreddy1478
@rohitreddy1478 3 года назад
With out doing LCM Essy way to do decimal to binary Is 25 means ( so... 16 8 4 2 1) from back 16+8+1 is 25 in place 16,8,1 keep 1 in rest of the values or 0's so ans is 11001
@vishalghuman6282
@vishalghuman6282 5 лет назад
Binary of 31 :- 0b11111 52:- 0b110100 65:- 0b1000001
@rifatnoor8969
@rifatnoor8969 4 года назад
Best video ever seen on python😊💕
@manedirajesh2173
@manedirajesh2173 3 года назад
hey , but this conversion works only when the value is within 32 bits. any other inbuilt modules we can use to convert long int to binary in py3?
@jayaramjs4168
@jayaramjs4168 3 года назад
Sir please let me know about the name of the method used in this video of binary conversion
@anushagujjeti5083
@anushagujjeti5083 3 года назад
Firstly thank you sir for the great content
@Kasko-na-raja
@Kasko-na-raja 2 года назад
Ans is False
@goutamvohra3442
@goutamvohra3442 5 лет назад
a=15 >>> b=12 >>> x=(a//4+b**3)>> x False >>> because b remainder is not equal to 0
@BRSanush
@BRSanush 3 года назад
Sir namaste U made learning python is easy and fun for beginners. Thank u sir.
@nopetynope3090
@nopetynope3090 4 года назад
Bhai a very well made video. One question, why do you never change your jacket? 😂
@lovemusic6994
@lovemusic6994 4 года назад
By substituting a and b values we get (15//4+12**3)
@pranavbajaj4034
@pranavbajaj4034 2 года назад
Wait the sign is != It means it is true
@sagarthoke2472
@sagarthoke2472 4 года назад
Respect+love= best learning== Navin Sir😘😘😘
@madmax1099
@madmax1099 6 лет назад
Answer is true because Condition one is true by bodmas rule and second condition also true so it is true As both statements are then the relavent output is also true
@vishwa1122
@vishwa1122 3 года назад
Thanks a lot !
@simrantaneja2200
@simrantaneja2200 4 года назад
i have a doubt sir 6:52 should we always divide using 2
@pradeepsai9876
@pradeepsai9876 4 года назад
Yes,for binary format.u have to divide it by 2 always
@ravitejathiruveedhi3654
@ravitejathiruveedhi3654 Год назад
The ans for that question that u have given is "False"becoz it is (and) operator before the and operator it is True value and after (and) the value is "False" sir
@039_priyanshisharma2
@039_priyanshisharma2 3 года назад
best phython course ever ....thank u sir it helps a lot....
@salihusaaduabubakar6851
@salihusaaduabubakar6851 5 лет назад
this a very commendable effort .... thank you so much. and i will appreciate it if you will help me woth ways to be a benefiting programmr
@poojainamdar1614
@poojainamdar1614 4 года назад
Thank you so much sir.... I used to think coding is not cup of my tea.... But after studying from your tutorials I find coding now interesting, and now I am able to develop logic 🙂
@sajalgpt8
@sajalgpt8 3 года назад
And to Quiz Ques: output will be False since x is
@kartikaytripathi2272
@kartikaytripathi2272 6 лет назад
great work sir... love your content..!!!!!
@arpitak1121
@arpitak1121 Год назад
sir its using ip conversion formula to convert in binary form 00000000 . means 128 64 32 16 8 4 2 0 it is easy to understand
@sravankumar1983
@sravankumar1983 6 лет назад
Hey dude, loving ur videos one more than another. Loving it
@shubhamboss4387
@shubhamboss4387 4 года назад
input - a=15 b=12 x=(a//4+b**3)
@parulkashyap6407
@parulkashyap6407 3 года назад
decimal of '0b110011010' = '410' 🤗
Далее
Будзек и рецепт🐝
00:25
Просмотров 144 тыс.
Decimal to Binary and Binary to Decimal Conversion
16:17
5 Useful F-String Tricks In Python
10:02
Просмотров 294 тыс.
Solve any Star Pattern program in Python
18:44
Просмотров 915 тыс.