Тёмный
The Programming Portal
The Programming Portal
The Programming Portal
Подписаться
I believe in sharing knowledge so I create coding videos for different programming languages and use this channel to help you all.

You can find me on :

The Programming Portal : theprogrammingportal.com/
Facebook : facebook.com/TheProgrammingPortal/
Instagram : instagram.com/theprogrammingportal/

Subscribe to my other channel for random videos:
IndianBox : ru-vid.com/show-UC_F45pOu0ZWTpkt3gw6x2jA

“If you have knowledge, let others light their candles in it.”― Margaret Fuller
Decorators Example in Python
2:22
Год назад
Комментарии
@al-hashim8038
@al-hashim8038 9 дней назад
Good explanation 👍
@ahmetunaldi7601
@ahmetunaldi7601 13 дней назад
Thank you very much The Programming Portal.
@sdmagic
@sdmagic 21 день назад
Very nice and easy to understand video. Thanks!
@Tr_Arlen
@Tr_Arlen 24 дня назад
thankss
@josh-lut769
@josh-lut769 29 дней назад
clear, concise but very usefull !! i'm very gratful
@Anaghv-nh9zu
@Anaghv-nh9zu Месяц назад
Can we do it using while loop?
@sushilsharma9453
@sushilsharma9453 Месяц назад
Non sense
@sushilsharma9453
@sushilsharma9453 Месяц назад
Khud ko aata nh h
@vishvasellamuthu7658
@vishvasellamuthu7658 Месяц назад
keyboard sound is irritating
@HousseinAlDroubi
@HousseinAlDroubi Месяц назад
Hi man, welcome to you.
@amanyadav-l4m8f
@amanyadav-l4m8f Месяц назад
bohot ganda hai
@msija8156
@msija8156 2 месяца назад
Nice 🎉🎉
@aswathis5902
@aswathis5902 2 месяца назад
@11_11_motivation
@11_11_motivation 2 месяца назад
Thank you
@overdoseonmynuts
@overdoseonmynuts 3 месяца назад
thanks man, but what if I wanted to assign 2 answers to one question
@jayasurya225
@jayasurya225 3 месяца назад
Sir I will print some range by using forloop it will not print
@TheProgrammingPortal
@TheProgrammingPortal 3 месяца назад
Hi, are you trying to run the same code explained in the video? Can you check the code once and share the error
@Tooobiasss0
@Tooobiasss0 3 месяца назад
great video, helped a lot!
@Myself_Irin
@Myself_Irin 3 месяца назад
Tomorrow's my ai exam
@SVARUOK
@SVARUOK 3 месяца назад
indians are always straight to the point
@structural-legacy
@structural-legacy 4 месяца назад
Nicely explained.....
@demonbhanuliteyt2399
@demonbhanuliteyt2399 4 месяца назад
n = input("Enter a number: ") x = len(n) z = 0 for i in range(x): y = int(n[i])**x z += y if z == int(n): print(f'{n} is an Armstrong number') else: print(f'{n}is not an Armstrong number')
@amruthasnarayan8751
@amruthasnarayan8751 5 месяцев назад
where should i type those 3 lines?...which software?
@TheProgrammingPortal
@TheProgrammingPortal 5 месяцев назад
Hi, could you please elaborate your query. Those 3 lines are normal text files that were written by Python code. If you are asking about IDE, you can use any. I am using Pycharm IDE.
@codee_script
@codee_script 22 дня назад
If you want to work on pc or laptop, you can choose vs code, pycharm, any kind of text editor or in any interpreter. Or if you want to work and run code on Android device, you can choose terminux, app like Android studio, pydroid3 (offline) and etc.
@shree9320
@shree9320 5 месяцев назад
brilliant explanation
@voscapattern
@voscapattern 5 месяцев назад
thanks much
@noguy31
@noguy31 5 месяцев назад
how do you get to do the pop up of the arguments you can input when you type
@GowthamKumar-vv8bq
@GowthamKumar-vv8bq 5 месяцев назад
Todays exam me watching before exam😅
@jothi3807
@jothi3807 6 месяцев назад
Thank you
@Alokikprakash
@Alokikprakash 7 месяцев назад
badiya bhai
@anshpalekar152
@anshpalekar152 7 месяцев назад
But it exceeds time limit in leetcode(Rotate array) while doing right rotate
@justfeelit9019
@justfeelit9019 7 месяцев назад
Good
@melissaleigh8019
@melissaleigh8019 7 месяцев назад
God bless you, passing on your knowledge to many people.
@Imprisoner3493
@Imprisoner3493 7 месяцев назад
Sir i have written this code: a=input("Enter your number: ") p=0 for i in a: p=p+int(i)**3 if int(a)==p: print("The number entered is armstrong") else: print("The number entered is not armstrong") it is also showing the same output, so can i consider is right? or do i have to use your method??
@TheProgrammingPortal
@TheProgrammingPortal 7 месяцев назад
Hi, I'm just having an overview of your code. It does seem correct. And yes, you can use your method as long as your code returns you the correct result. In addition to that it is good practice to follow best practices. I have followed the function based approach. However, the code can be written without function as well. Keep Learning.
@Imprisoner3493
@Imprisoner3493 7 месяцев назад
@@TheProgrammingPortal thankyou so much for replying sir 🙏🏻😁
@kavya9872
@kavya9872 3 месяца назад
Can you explain the logic behind this code?
@Irfana-gm3lk
@Irfana-gm3lk 8 месяцев назад
4 Hrs before the exam watching this😂
@kofiswisconsin1552
@kofiswisconsin1552 8 месяцев назад
👍
@AnujAryavart
@AnujAryavart 8 месяцев назад
Watching this video before 2 hours of exam
@laasya_swamy
@laasya_swamy 8 месяцев назад
Damnn, Thank you!!
@niranjanapn9641
@niranjanapn9641 8 месяцев назад
num = 153 str_num = str(num) order = len(str_num) total = 0 for i in str_num: power = int(i)**order total += power print(total == num) what's wrong?
@TheProgrammingPortal
@TheProgrammingPortal 8 месяцев назад
Hi, by looking at code, it seems correct. Are you getting some errors? And yes, a program can be written in many ways, provided it gives the right output and follows good practices. Your approach is another way of doing it. Happy learning.
@anithavadlamudi5866
@anithavadlamudi5866 8 месяцев назад
As u given in the range of i does the num will check with all the value s in the range of i
@EdigotiNarender
@EdigotiNarender 8 месяцев назад
Thank you for your brief explanation
@ShivanshShukla-k1w
@ShivanshShukla-k1w 9 месяцев назад
💯💯💯
@marouanh2653
@marouanh2653 9 месяцев назад
Thank you brother
@niha1398
@niha1398 9 месяцев назад
it is great
@jeejwala
@jeejwala 10 месяцев назад
Syntax error aa rha hai
@TheProgrammingPortal
@TheProgrammingPortal 10 месяцев назад
What syntax error are you getting? Please validate the code once. Also, check any indention error or something else.
@Archarj
@Archarj 10 месяцев назад
Thankyou😇
@najmuzzaki4128
@najmuzzaki4128 11 месяцев назад
Thanks mate
@ghazalasheikhrafiq4250
@ghazalasheikhrafiq4250 11 месяцев назад
how 1.8 There is a formula (F - 32)×5÷9 But you wrote (F-32)÷1.8 can you explain me why 1.8 ?
@roshunluchman4976
@roshunluchman4976 11 месяцев назад
Hi can anybody tell me how to tell python to randomly choose 6 numbers from a range of say 1 to 10 but it cannot choose a number more than once
@dolemerchant69
@dolemerchant69 11 месяцев назад
thanks a lot for this tutorial, very well explained!!
@glenj5618
@glenj5618 11 месяцев назад
😥 Promo-SM
@ThusharaLakmal-f9m
@ThusharaLakmal-f9m Год назад
wow you are making it sooooo confusing. it can be done in much more simple manner ...
@RexLapis-h5k
@RexLapis-h5k Год назад
makasih bang the programming portal aku tadi disuruh menulis beginian ama guruku tetapi saat kau muncul di beranda ku aku tertolong sekali