HOW TO CONVERT ANY NUMBER TO A ROMAN NUMERAL? | Project Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 73

  • @imdadood5705
    @imdadood5705 3 ปีที่แล้ว +6

    Wow! One of the simplest explanation for this I have seen so far!

    • @kaifk
      @kaifk  3 ปีที่แล้ว

      Thank you so much, glad you liked it!

  • @kamalkumar945
    @kamalkumar945 3 ปีที่แล้ว +7

    keep making videos you explain in a really simple and cool way🥰

    • @kaifk
      @kaifk  3 ปีที่แล้ว +1

      Thank you so much 😀

  • @FuanyiJude
    @FuanyiJude 6 วันที่ผ่านมา

    coool algorithm breakdown

  • @316mishraabhishek3
    @316mishraabhishek3 3 ปีที่แล้ว +2

    i just loved the way u explain and generalize the prob.

  • @AlibabaEsanov
    @AlibabaEsanov ปีที่แล้ว +1

    Thanks a lot man!

  • @AbbyVbz
    @AbbyVbz 4 ปีที่แล้ว +4

    loved the way u explains and u made a programming very simple thanks a lot! keep going

    • @kaifk
      @kaifk  4 ปีที่แล้ว +1

      Thank you so much!

  • @annaspiering6045
    @annaspiering6045 4 ปีที่แล้ว +7

    Great video! How can I use this info to make a function that converts from roman numerals to integers, so the other way around?

    • @kaifk
      @kaifk  4 ปีที่แล้ว +3

      Hi Anna, I'm not gonna give the answer away because it seems like you've just given me an idea for the next video! But I will try and point you in a direction. With the reverse operation you will now be trying to identify Roman Numerals in the input string, and then make the appropriate conversion into integers. Hope this helps 😊

  • @LauraMariaFSilva
    @LauraMariaFSilva 2 ปีที่แล้ว

    bro, you really helped me. thank you SO MUCH

  • @joshuanishanthchristian5217
    @joshuanishanthchristian5217 ปีที่แล้ว

    Thanks this was a useful reference!

  • @tugba_dokumaci
    @tugba_dokumaci 3 ปีที่แล้ว +1

    you're doing great, keep going!

    • @kaifk
      @kaifk  2 ปีที่แล้ว +1

      Thank you so much!

    • @tugba_dokumaci
      @tugba_dokumaci 2 ปีที่แล้ว +1

      @@kaifk You haven't posted any videos lately, I hope things are going well. 🙌🏻

    • @kaifk
      @kaifk  2 ปีที่แล้ว +1

      Thanks for checking in, things have been busy lately I'll be back with some content very soon :) (I really appreciate it, genuinely my favorite comment)

  • @viswanthtammana4531
    @viswanthtammana4531 2 ปีที่แล้ว

    Thank you bhai! This helped me.

  • @rabz749
    @rabz749 3 ปีที่แล้ว +2

    thanks a lot, very helpful

  • @Lethal88
    @Lethal88 2 ปีที่แล้ว

    Hi! Awesome solution. How did u get idea to use numbers like numbers in 2:18 to get the great result?

    • @kaifk
      @kaifk  2 ปีที่แล้ว

      I'm not sure what you mean but thank you 😅

  • @itsearcast
    @itsearcast 3 ปีที่แล้ว

    buddy you are doing really great WORK keep it up buddy........................

    • @kaifk
      @kaifk  3 ปีที่แล้ว

      Thank you so much!

  • @Jiohotstar_original
    @Jiohotstar_original 5 หลายเดือนก่อน

    how do you come up with the solution ? thanks by the way

  • @anshitashrivastava7862
    @anshitashrivastava7862 4 ปีที่แล้ว +3

    i just loved the way u explain and generalize the prob. And the ur way to take up to any prob. superb and keep up ill help and wish ur channel to grow fast and ull get the sky high success soon

    • @kaifk
      @kaifk  4 ปีที่แล้ว +1

      Thank you so much ♥️

  • @pc-qn7mu
    @pc-qn7mu 3 ปีที่แล้ว

    Thank you so much sir, gr8 explanation. Waiting 4 more vids. Keep it up

    • @kaifk
      @kaifk  3 ปีที่แล้ว

      Np dear.... will 100% uplod nd let u no😊😊

  • @sinister_rules
    @sinister_rules 2 ปีที่แล้ว

    Great bro thanku so much.

  • @floriandeeemon3776
    @floriandeeemon3776 4 ปีที่แล้ว +1

    Great explanation!

  • @mnm9418
    @mnm9418 4 ปีที่แล้ว +1

    Can define a dictionary instead on 2 list?
    btw it was really really helpfull

    • @kaifk
      @kaifk  4 ปีที่แล้ว +1

      Yes, you're right! Using a dictionary is a great idea but I'm saving dictionaries for another video 😋

  • @joshquarter3097
    @joshquarter3097 3 ปีที่แล้ว

    I literally spent the last 3 hours trying to figure this shit out. 😐 thanks

  • @vkrs3315
    @vkrs3315 2 ปีที่แล้ว

    Thank you

  • @BsgowdaBsgowda-kh9dd
    @BsgowdaBsgowda-kh9dd 3 ปีที่แล้ว

    Thank you!

  • @kalyanbaidya7339
    @kalyanbaidya7339 3 ปีที่แล้ว

    Thank you so much♥

  • @fathimathulfarhanapk3155
    @fathimathulfarhanapk3155 4 ปีที่แล้ว

    It really helped me😄👍

  • @ElijahEscondo
    @ElijahEscondo 3 ปีที่แล้ว

    how can I open this code using command prompt?

    • @kaifk
      @kaifk  3 ปีที่แล้ว

      Open a command prompt, navigate to the folder in which the python file is then type "py name_of_file.py" or "python name_of_file.py". That should work, if not it means either you haven't installed python or you have not set your PATH, I would suggest googling if the latter is the case.

  • @arunreddybaddam
    @arunreddybaddam 3 ปีที่แล้ว

    How to convert number to English word

  • @satishchand7518
    @satishchand7518 3 ปีที่แล้ว

    Amazing sir

  • @bhavyadoshi3816
    @bhavyadoshi3816 3 ปีที่แล้ว

    CAN I GET DRY CODE OF THESE PROGRAM ?

    • @kaifk
      @kaifk  2 ปีที่แล้ว

      The code in the video is linked in the description.

  • @SumanSadhukhan-md4dq
    @SumanSadhukhan-md4dq 4 หลายเดือนก่อน

    Nice

  • @tfz4434
    @tfz4434 2 ปีที่แล้ว

    I am currently trying to do this with any number between 1 and 100,000, however, when trying numbers above 10000, most of them dont properly convert. Any idea on how to fix this?

    • @kaifk
      @kaifk  2 ปีที่แล้ว

      Check this out: www.romannumerals.org/blog/which-is-the-biggest-number-in-roman-numerals-6

    • @tfz4434
      @tfz4434 2 ปีที่แล้ว

      @@kaifk thanks, managed to get it to work now 😁

  • @youcancallmedren6551
    @youcancallmedren6551 3 ปีที่แล้ว

    Write a program that asks the user to input a whole number. Then, tell each place values of each digit.

    • @kaifk
      @kaifk  3 ปีที่แล้ว

      This is a great idea! Thank you

  • @arun_kumar1234
    @arun_kumar1234 ปีที่แล้ว

    Bro You look like ram potheneni who is Telugu actor

  • @bhupeshpattanaik7150
    @bhupeshpattanaik7150 4 ปีที่แล้ว

    In Roman array why we took some selected roman number and not other as there is no III (3) etc

    • @kaifk
      @kaifk  4 ปีที่แล้ว +1

      Hey! We did that so that our list is not extremely long! To build on your example, 3 is written as III which can simply be said to be three ones (I)(I)(I). Similarly, think of the characters we put in the roman array/list as building blocks for all other numbers. Hope this helps :)

    • @bhupeshpattanaik7150
      @bhupeshpattanaik7150 4 ปีที่แล้ว

      @@kaifk then why we put IV it can also be written (I)(V) ?

    • @kaifk
      @kaifk  4 ปีที่แล้ว

      Because the order matters (I) (V) can be read as 1, 5 but we need to distinguish between 1,5 and 4. This is also the reason we have the roman numerals for 9, 40, 90 etc.

  • @praish6054
    @praish6054 2 ปีที่แล้ว

    the not equal to operator (!)is giving error

    • @kaifk
      @kaifk  2 ปีที่แล้ว

      Can you post your code and logs so we can have a look?

  • @omdeshmukh9139
    @omdeshmukh9139 2 ปีที่แล้ว

    Thanks man! You the man bro! Jabarjast! Chumma!
    Disclaimer: Not gay

  • @endless7597
    @endless7597 2 ปีที่แล้ว

    Giga Chad right there

  • @happinessisabutterfly476
    @happinessisabutterfly476 3 ปีที่แล้ว

    it says invalid syntax for i=12 is there anyone can help?

    • @kaifk
      @kaifk  3 ปีที่แล้ว

      Link your code

  • @leelakrishnaisukapalli8431
    @leelakrishnaisukapalli8431 3 ปีที่แล้ว

    It's just awesome but we can't convert 10,000 to roman through this code. Can you please explain for this process to it very helpful to everyone

    • @kaifk
      @kaifk  3 ปีที่แล้ว +1

      So as you saw the highest number that can be represented by a single letter is 1,000 (M). This means that the largest number that can be represented using only letters is 3,999 or MMMCMXCIX. To represent higher numbers you need to use the vinculum, but this was not discussed in the video.

  • @mhm6
    @mhm6 3 ปีที่แล้ว

    You can just import the roman library then problem solved

  • @davidhiggins6535
    @davidhiggins6535 4 ปีที่แล้ว

    Shen the hell did you describe i= 12

    • @kaifk
      @kaifk  4 ปีที่แล้ว

      5:57

  • @aakrititripathi243
    @aakrititripathi243 3 ปีที่แล้ว

    You are from which country 😁
    Just asking😄😃😀🤗

    • @kaifk
      @kaifk  3 ปีที่แล้ว

      India :)

  • @tamadgaming2271
    @tamadgaming2271 3 ปีที่แล้ว

    Wow magic.! we want program not a discussion if what is roman numeral. wtf.!

    • @kaifk
      @kaifk  3 ปีที่แล้ว

      All solutions are always in the description.
      Hint: that's where you'll find the program/code, the video is where you'll find the discussion. :)

  • @aqlimavirani9824
    @aqlimavirani9824 4 ปีที่แล้ว

    👍🏽👍🏽👍🏽👍🏽

    • @kaifk
      @kaifk  4 ปีที่แล้ว +1

      🙏🙏