Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using print with double quotes #10

Open
Klaudioz opened this issue Sep 6, 2021 · 1 comment
Open

Error using print with double quotes #10

Klaudioz opened this issue Sep 6, 2021 · 1 comment

Comments

@Klaudioz
Copy link

Klaudioz commented Sep 6, 2021

I'm getting an error running:

print("Hello world")

If I run with single quotes, there is no error:

print('Hello world')

This is the error (I can't copy it)
image

@Klaudioz
Copy link
Author

Klaudioz commented Sep 6, 2021

The same happens with dictionaries:

Running this:

ages = {"Peter": 10}
print(ages["Peter"])

I get: NameError: name 'Peter' is not defined.

Running this I don't have any issue.

ages = {'Peter': 10}
print(ages['Peter'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant