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

corrections in the code #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions 2 - Print/coding_challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,26 @@
# print the message
print('Why won't this line of code print')

# As there is a single quote which will throw an error of invalid syntax.
# We will have to escape the single quote using \
print('Why won\'t this line of code print')

# print the message
prnit('This line fails too!')

# The function being used here is print
print('This line fails too!')

# print the message
print "I think I know how to fix this one"

# Missing parenthesis to call print
print ("I think I know how to fix this one")

# print the name entered by the user
input('Please tell me your name: ')
print(name)

# We need to store the String (name) in a variable
name = input('Please tell me your name: ')
print(name)