Skip to content

Formatting changes on Scanner.py #1

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Baby-McBabyFace
Copy link

Changed how the code prints its results.

randStr = "foo bar"
print("Value is ", randStr)
produces Value is foo bar (can't see it on github)

while

randStr = "foo bar"
print("Value is", randStr)
produces Value is foo bar

Notice that there is a double space on the former code between is and foo

Edited from #!/usr/bin/python3 to #!/usr/bin/env python for compatibility

Replaced elif resp >= '4': with else: to catch negative numbers and strings

AlexisAhmed pushed a commit that referenced this pull request Oct 9, 2021
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

Successfully merging this pull request may close these issues.

1 participant