I am new to programming and try to learn it by taking intro class using python.
One of my tasks requires us to do the following:
Now we just studied the basic material (operators, if / else / elif , while loops, printing, lines, integers)
I came up with something that randomly assigns two digits, converts them into strings, and then combines them into a two-digit string. From here, I used elif expressions to match every possible condition.
Unfortunately, this is not what is required. I have to use two integers when making comparisons. Unfortunately, I have absolutely no idea how to compare parts of an integer or cancel an integer with what I was taught.
Now I'm not looking for someone to solve this for me. I need help, either a hint or a suggestion on how I should think about it with the basic knowledge that I have.
Any help is appreciated.
I included the code I wrote.
# homework 2
source share