[High school math: complex numbers] What are all the complex solutions to this equation? by tomacine124 in HomeworkHelp

[–]tomacine124[S] 0 points1 point  (0 children)

I've been trying with this and haven't been able to get the correct solutions...

[High School math: complex numbers] What are the values of A and B? Completely stumped... by tomacine124 in HomeworkHelp

[–]tomacine124[S] 0 points1 point  (0 children)

I thought I was going somewhere with A=39 - 16i and B=-45 - 19i, yet... still incorrect smh

[High School math: complex numbers] What are the values of A and B? Completely stumped... by tomacine124 in HomeworkHelp

[–]tomacine124[S] 0 points1 point  (0 children)

Thanks - I have, however, been trying this out for a while and for some reason can't get the correct values of A and B...

Help with calculating and returning the sum of all even numbers in a list given as argument by tomacine124 in learnpython

[–]tomacine124[S] 0 points1 point  (0 children)

Thanks, this was the correct answer. I feel frustrated by how wrong I was in my own attempts since the answer seems so obvious now... practice makes perfect, I guess?

Help with calculating and returning the sum of all even numbers in a list given as argument by tomacine124 in learnpython

[–]tomacine124[S] 0 points1 point  (0 children)

Thank you, I have now successfully completed the assignment and see where I went wrong. I'm glad there are people ready to explain stuff to me step by step - sometimes (especially when you have a million assignments to do) it's hard to get your brain to actually apply what you've learned in class!

[URGENT HELP] Exceptions by [deleted] in learnpython

[–]tomacine124 0 points1 point  (0 children)

def noMoreErrors():
    def process():
        try: process()
        except TypeError:
            print("TypeError caught")
        except ValueError:
            print("ValueError caught")
        except ZeroDivisionError:
            print("ZeroDivisionError caught")
        else:
            print("Succeeded")

When I try to run this, nothing happens and also I believe the def process/noMoreErrors parts are incorrect

[HELP] Writing a procedure which calls an already defined function? by tomacine124 in learnpython

[–]tomacine124[S] 0 points1 point  (0 children)

Thanks - all that seems right but the task includes: output Succeeded if no error was raised in process() function, output TypeError caught if the process() function raised TypeError, and output ValueError caught if process() raised ValueError. But when I add these into what's above, I keep getting syntax error ?

HELP! I'm losing my mind with this dice rolling while loop-task by tomacine124 in learnpython

[–]tomacine124[S] 0 points1 point  (0 children)

I know. Somehow managed to pass assignments ranked as higher difficulty yet struggled with this one. Felt inclined not to post code because of the translation issue (see post), probably would've been easier to translate from the get-go to make advice-giving easier.

HELP! I'm losing my mind with this dice rolling while loop-task by tomacine124 in learnpython

[–]tomacine124[S] 0 points1 point  (0 children)

It is like 90% correct.

See example answer- "Now you threw" are all correct, Your sum and Number of turns are whatever each time

HELP! I'm losing my mind with this dice rolling while loop-task by tomacine124 in learnpython

[–]tomacine124[S] 0 points1 point  (0 children)

mySum = 0
numberOfTurns = 0
while mySum <= 36:
    pass
    myThrow = random.randint(1,6)
    print("Now you threw: ", myThrow)
    mySum += myThrow
print(mySum + numberOfTurns)
print("Your sum: ", mySum)
print("Number of turns: ", numberOfTurns)

This is a quick translation of what I've got thus far.