Skip to content

Update ex_0_intermediate_runfile.py#17

Open
ASLIOZKUL wants to merge 1 commit intonathanielpolley:mainfrom
ASLIOZKUL:patch-3
Open

Update ex_0_intermediate_runfile.py#17
ASLIOZKUL wants to merge 1 commit intonathanielpolley:mainfrom
ASLIOZKUL:patch-3

Conversation

@ASLIOZKUL
Copy link
Copy Markdown

@ASLIOZKUL ASLIOZKUL commented Oct 17, 2024

Assignment Intermediate

Copy link
Copy Markdown
Owner

@nathanielpolley nathanielpolley left a comment

Choose a reason for hiding this comment

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

Beginner objectives pending
Intermediate objectives pending
Advanced objectives pending

Total score: pending/3

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Here we have the correct implementation of accepting values from the user and making the final calculation. What I will need further is the code to be able to check and format the correct input. This should test if the string provided by the user is exclusively positive integers, which can be performed with the .isdigit() method. Also, this insures that there are no negative values or decimals. We want to exclusively convert to "int" here, as you cannot have a fraction of a cell. Finally, you must check if the final_count is greater than the initial_count, and this should be after the objects are converted into ints, as this mathematical conditional cannot be done on strings.

Very excellent progress so far. I will both go over this further in class today, as well as review your submission again once the changes have been made.

Score: pending/1

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.

2 participants