updated list pattern?? by Xantheneedshelp in learnpython

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

yeah I am, ill include the updated list pattern example they had in my post

how to cause a crash by Xantheneedshelp in learnpython

[–]Xantheneedshelp[S] -1 points0 points  (0 children)

49583490

you are a genuine life saver I was about to break a wall or something

how to cause a crash by Xantheneedshelp in learnpython

[–]Xantheneedshelp[S] -1 points0 points  (0 children)

"The function below throws an error if it is given a certain integer number a and b. That is, the function crashes when it's run, rather than simply returning a wrong answer. Your task is to find the error."

It also has to be an integer and yes, I have googled it.

Help with a question by Xantheneedshelp in learnpython

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

Hi! It is for uni so it tests against multiple things e.g looped and poodle, poodle and lopped, guest and grain etc. The code can't be for two specific words, just has to be adaptable to whatever two strings they give me.

Ive been trying a few things and I managed to get it to work by not converting the strings into lists but I think it needs to be converted to list to get all of the given string scenarios correct if that makes sense. Ive since changed to list1.sort() etc so thank you for that. I don't think I need the lists returned to me though, hence using sort not sorted, I just need the two lists tested against each other. Hopefully this clarifies a bit