How to add doubble digits | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

How to add doubble digits

I can't add the number 10 kinda need help https://code.sololearn.com/cz9Q49Eq4B9r/?ref=app https://code.sololearn.com/cz9Q49Eq4B9r/?ref=app

25th Sep 2023, 7:16 PM
Damien Page
Damien Page - avatar
20 Respostas
+ 2
do your numbers have to be strings or can they be integers? or maybe I should ask which numbers? the Roman numerals? or the input numbers?
25th Sep 2023, 7:35 PM
Aaron Lee
Aaron Lee - avatar
+ 6
Damien Page Hey, it seems like you found a completely different approach, and I'm really glad you worked it out.
28th Sep 2023, 1:39 PM
Chris Coder
Chris Coder - avatar
+ 5
The loop may present some difficulties in this situation. To ensure clarity and achieve your intended result, it could be worth considering the removal of the loop and the unnecessary conversion of numbers to uppercase. If this doesn't align with your intention, please let me know. https://code.sololearn.com/ceQfqR6BskMl/?ref=app
27th Sep 2023, 4:59 PM
Chris Coder
Chris Coder - avatar
+ 2
What do you mean by strings? also the input numbers
25th Sep 2023, 7:42 PM
Damien Page
Damien Page - avatar
+ 2
I'm not shure can you demonstrate?
25th Sep 2023, 8:52 PM
Damien Page
Damien Page - avatar
+ 2
I tried to fix it the way you explained would you be able to correct it for me? If you do I will put full credits for you
26th Sep 2023, 2:58 AM
Damien Page
Damien Page - avatar
+ 2
We're you able to fix it?
26th Sep 2023, 1:49 PM
Damien Page
Damien Page - avatar
+ 2
I made changes to the original but they messed up a couple other lines that worked so I didn't save
26th Sep 2023, 3:53 PM
Damien Page
Damien Page - avatar
+ 2
Damien Page Ok, perhaps I'm not explaining it well, it's not always an easy thing to do for me. I added some comments to help explain what I mean: https://code.sololearn.com/cPVGau0kzSZB/?ref=app
27th Sep 2023, 4:56 PM
Aaron Lee
Aaron Lee - avatar
+ 2
Damien Page there is an option of reading each number separately Aaron Lee Chris Coder https://code.sololearn.com/cz1Ml0OpYHQF/?ref=app
27th Sep 2023, 5:45 PM
BroFar
BroFar - avatar
+ 2
Hey I have found out the solution and have fixed my prevent mistakes and after some verry hard thinking I have come up with this: https://code.sololearn.com/cxoK8rxBCP90/?ref=app
28th Sep 2023, 11:52 AM
Damien Page
Damien Page - avatar
+ 2
Thanks Chris Coder hope you have a wonderful day
28th Sep 2023, 1:41 PM
Damien Page
Damien Page - avatar
+ 1
Sorry I misunderstood your question, ignore my first comment. Look at line 2. (for/in) It is splitting up your input digit by digit. Is there another way you can compare your input to things?
25th Sep 2023, 8:22 PM
Aaron Lee
Aaron Lee - avatar
+ 1
Of course, have a look at this code https://code.sololearn.com/cf8OVf9Mqjo3/?ref=app
25th Sep 2023, 9:40 PM
Aaron Lee
Aaron Lee - avatar
+ 1
Damien Page Sure! No need for full credit, I'm just happy to help
26th Sep 2023, 3:52 AM
Aaron Lee
Aaron Lee - avatar
+ 1
Damien Page did you do another one? Or make changes to the original? I only see the original you posted
26th Sep 2023, 2:30 PM
Aaron Lee
Aaron Lee - avatar
+ 1
give it a try again, and save it. then let me know. and i can look at it.
26th Sep 2023, 7:09 PM
Aaron Lee
Aaron Lee - avatar
+ 1
I kept trying to fix the way you explained but nothing worked https://code.sololearn.com/cXp94sq50H09/?ref=app
27th Sep 2023, 4:28 PM
Damien Page
Damien Page - avatar
+ 1
Hey! Nice work Damien Page! Looks great!
28th Sep 2023, 3:03 PM
Aaron Lee
Aaron Lee - avatar
0
BroFar yes but I was trying to avoid that and hoping I could get to at least 15
27th Sep 2023, 7:32 PM
Damien Page
Damien Page - avatar