UPDATE: We have now ordered all 30 ELISAs and are coordinating blood delivery from US and EU to the UK (34 patients)
The response from the community was overwhelming
We filled all open places and had a waiting list of 30 in 24 hours
We are so excited to start this research
@RealBenjizo I made a mistake. The answer is still C but that's because 'x' is a global variable and returned in its original form. The value for 'x' that is returned has not been passed through func.
@RealBenjizo Answer: C
The tuple 'x' is passed in as the argument for 'a' in func. Since the value for 'a' is 'x', and 'x' is a tuple, it doesn't meet the condition in the 'if' statement and 'x' is returned unchanged i.e. as the tuple (1, 2, 3).
@galamike26@clcoding You're right that it wouldn't be "Hello World" with a space but I think technically the output would be:
Hello
World
@clcoding doesn't seem to give answer options with outputs printed vertically.
@clcoding Answer is b).
A for loop iterates over the contents of 'lst', squaring each item ('i') if it has a remainder of 0 when the modulo operator (%) is applied (i.e. even numbers) and appending the result to 'new_lst' in one line of code using a list comprehension.
@clcoding The answer is A: 1 2
A for loop iterates through 'lst' , assigning each successive item in 'lst' to 'i' on each iteration of the loop, printing the current value of 'i' until the conditional 'if i == 3' is met and the 'break' keyword in the 'if' code block ends the for loop.
@DanielK_phd Wow I can't believe I actually got it right! I'm feeling very proud of myself. Thanks so much @DanielK_phd 🙏 - looking forward to the next quiz 👍
@DanielK_phd Hi Daniel I just found you! Currently learning about testing. I also just did the quiz you posted yesterday would love you to look at my answer if you have time! Thanks for the content
@DanielK_phd 4) After executing its nested function (outer), outerrouter prints x (which is still the local variable of outerrouter and still =7.) so 7 is printed.
...
@DanielK_phd 3) Then outer prints x which has been declared non-local (which means outer can modify x in its enclosing function i.e. outerrouter) so in the scope of outer, x=7. ...
@DanielK_phd I came to 9779:
1) outerrouter is executed, which in turn executes outer (which will execute inner and also print x).
2)outer executes inner which has access to the global variable x and sets it to 9 then prints x (now 9 in the global namespace). ...
Getting stuck in with this OOP project in the Intermediate Python course on Codecademy. Supplementing learning with GPT is 🤌 #Codecademy#codejourney#GPT#weekendvibes