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

What is different between str and 'str'? #18

Open
xspam1984 opened this issue Oct 24, 2017 · 1 comment
Open

What is different between str and 'str'? #18

xspam1984 opened this issue Oct 24, 2017 · 1 comment

Comments

@xspam1984
Copy link

Assertion errors are thrown for only case 2 and case 4 if the if statements contain:

if type(a) == 'str' and type(b) == 'str' and type(c) ==' str'

why do those fail when 1 and 3 work?

@abeanari
Copy link

str is the object that is recognized in python. 'str' is just an unassigned value much like 'hello world' and in this case both of these are of type str

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

No branches or pull requests

3 participants