FAQ: Learn Python - Pyglatin - Check Yourself... Some More

This community-built FAQ covers the “Check Yourself… Some More” exercise in Codecademy’s lessons on Python.

FAQs for the Codecademy Python exercise Check Yourself… Some More:

Join the Discussion. We Want to Hear From You!

Have a new question or can answer someone else’s? Reply (reply) to an existing thread!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources about Python in general? Go here!

Want to take the conversation in a totally different direction? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account, billing, Pro, or Pro Intensive? Reach out to our support team!

None of the above? Find out where to ask other questions here!

Other FAQs

The following are links to additional questions that our community has asked about this exercise:

  • This list will contain other frequently asked questions that aren’t quite as popular as the ones above.
  • Currently there have not been enough questions asked and answered about this exercise to populate this FAQ section.
  • This FAQ is built and maintained by you, the Codecademy community – help yourself and other learners like you by contributing!

Not seeing your question? It may still have been asked before – try (search) in the top-right of this page. Still can’t find it? Ask it below by hitting the reply button below this post (reply).

Can we use elif instead of and?

No, given the behavior is different, if we do:

if A and B:

then A and B (conditions) have to be true for the if clause to be executed

where as:

if A:

elif B:

when A is true, the if clause is executed, if A is false and B is true, the elif clause is executed.

1 Like

I’m sorry I didnt know how to create a new thread but I wanted to know how come my codes aren’t working for the Pig Latin section. Everytime I run my code it says Syntax Error but whenever I check the solution from Codeacademy I have the same answers. Does this happen often on Codeacademy?

1 Like

It’s unlikely that a syntax error pops up specifically on cc, without seeing the code it’s not really possible to say for certain though. Please see- How to ask good questions (and get good answers) if you want to set up a good question, especially the section on posting formatted code.

If you really don’t want to run it as thread then you could try running your code on a different device or a number of websites will let you run python scripts. Then you can check if your syntax error is limited to one environment.

how meny (and/or/not) can I have in one if statment?

I don’t think there is a limit. The more concerning factor is that so many and/or/not keywords within a single if statement means your code is in serious need of refactoring/cleaning up/restructuring.

Thank you for replyng , I’m new at this .your answer make alot of sence :innocent:

Both this lesson and the previous lesson have the same issue.

My code is identical to the solution given.

When I run the code, and put in an input for the word, no matter what it is, the program will run for a bit and then give me the following error:

Traceback (most recent call last):
File “python”, line 4, in
ExecTimeoutException: Program took too long to terminate.

Again, my code is identical to the solution code, so I have no idea what’s going on

Do you have a link to the lesson?

There’s two likely scenarios for timing out, one would be an infinite loop and the second would be an input that was never sent. If you’re looping make sure your code can actually stop and if you’re using input there’s normally a terminal window on the right hand side where you must click, type out your input and hit enter in order to actually input something.

1 Like

A link to the lesson? It’s… the lesson that this one is a faq for? I assume the code can stop because the code is identical to the solution code. I did put an input in and hit enter. After I did so, the operation would continue going and then time out. As it stands, refreshing the page appears to have solved the issue.

I’m glad your issue has been resolved. Yes you can access the FAQ from the lesson but at the moment you cannot do the inverse, the FAQ does not link back to the lesson correctly. That could be fixed with the URL to the lesson.

1 Like

hi there! I’ve been trying to do the last couple codes and i get the same errors as everyone else about the time out. I’ve typed it in correctly. I’ve double checked the code. I’ve ended up copy & pasting. I’ve switched codes. but everything its telling me that it’s being timed out so even though it’s allowing me to move on, I’m not learning what response i’m supposed to be getting. any help would be greatly appreciated!!!

it’s this one and the one before. https://www.codecademy.com/courses/learn-python/lessons/pyglatin/exercises/check-yourself-some-more

First it must be run then the console on the left becomes active and awaits user input. If you click it with the mouse and then type something in followed by a press of the Enter key then it should continue execution.

Following those steps this the result I get…

pyg

If that’s not happening it might be an issue with your browser, firewall or similar. You could try some of the guidance here… https://help.codecademy.com/hc/en-us/articles/220441848-Connection-Lost-in-Codecademy-s-Learning-Environment

If that doesn’t help then you might want to contact cc customer service (link on that page) to see if there’s anything they can do to help.

1 Like