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

Fix typo errors #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion python-for-beginners/02 - Print/ask_for_input.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The input funciton allows you to prompt the user for a value
# The input function allows you to prompt the user for a value
# You need to declare a variable to hold the value entered by the user
name = input('What is your name? ')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Create a function to return the first initial of a name
# Parameters:
# name: name of person
# force_uppercase: indicates if you always want the initial to be in upppercase: default is True
# force_uppercase: indicates if you always want the initial to be in uppercase: default is True
# Return value
# first letter of name passed in
def get_initial(name, force_uppercase=True):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Create a function to return the first initial of a name
# Parameters:
# name: name of person
# force_uppercase: indicates if you always want the initial to be in upppercase
# force_uppercase: indicates if you always want the initial to be in uppercase
# Return value
# first letter of name passed in
def get_initial(name, force_uppercase):
Expand All @@ -15,7 +15,7 @@ def get_initial(name, force_uppercase):
first_name = input('Enter your first name: ')

# Call get_initial function to retrieve first letter of name
# Alwasy return initial in uppercase
# Always return initial in uppercase
first_name_initial = get_initial(first_name, False)

print('Your initial is: ' + first_name_initial)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Create a function to return the first initial of a name
# Parameters:
# name: name of person
# force_uppercase: indicates if you always want the initial to be in upppercase
# force_uppercase: indicates if you always want the initial to be in uppercase
# Return value
# first letter of name passed in
def get_initial(name, force_uppercase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# 2 - warning code can continue but may be missing information in records
# log_to_db: Should this error be logged to the database
# error_message: Error message to display to user and write to database
# source_module: Name of the python module that generated ther error
# source_module: Name of the python module that generated the error

def error_logger(error_code, error_severity, log_to_db, error_message, source_module):
print('oh no error: ' + error_message)
Expand Down