Skip to content

Birmingham | July-SDC-26 | Merve Reis | Sprint 5 | Prep exercises - #684

Open
mervereis wants to merge 4 commits into
CodeYourFuture:mainfrom
mervereis:sprint5
Open

Birmingham | July-SDC-26 | Merve Reis | Sprint 5 | Prep exercises #684
mervereis wants to merge 4 commits into
CodeYourFuture:mainfrom
mervereis:sprint5

Conversation

@mervereis

@mervereis mervereis commented Sep 1, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Task code

Replace this line with the Task code 1155
Did all the exercises.

@mervereis mervereis added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 1, 2026
@mervereis mervereis added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Sep 1, 2026

@Khantdotcom Khantdotcom left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mandatory fix - Indentation errors.

Comment thread Sprint5/exercise2.py
# Since the function is called double, it should multiply the number by 2.

def double(number):
return number * 2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation error. Read this article here to see how indentation in python works.

Comment thread Sprint5/exercise4.py
self.address = address

imran = Person("Imran", 22, "Ubuntu", "Sheffield")
print(imran.address)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation error. Read this article here to see how indentation in python works.

Comment thread Sprint5/exercise3.py
if total_pence < 100:
return f"{total_pence}p"

pounds = int(total_pence / 100)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to use python's floor division here without needing int conversion.

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

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants