Skip to content

fix: correct inaccurate string method examples and comments - #956

Open
MobinaSafarirad wants to merge 1 commit into
Asabeneh:masterfrom
MobinaSafarirad:patch-1
Open

fix: correct inaccurate string method examples and comments#956
MobinaSafarirad wants to merge 1 commit into
Asabeneh:masterfrom
MobinaSafarirad:patch-1

Conversation

@MobinaSafarirad

Copy link
Copy Markdown

The previous code had several misleading comments and wrong outputs:

  • Fixed area calculation (was pi, now pi * radius**2)
  • Corrected isalpha() example (spaces cause False, not True)
  • Fixed join() output comment to match the actual separator
  • Removed misplaced find() examples under isdecimal() section
  • Updated strip() example to avoid false claim about stripping 'y'

I fixed them to prevent confusion for learners following the examples.

The previous code had several misleading comments and wrong outputs:
- Fixed area calculation (was pi, now pi * radius**2)
- Corrected isalpha() example (spaces cause False, not True)
- Fixed join() output comment to match the actual separator
- Removed misplaced find() examples under isdecimal() section
- Updated strip() example to avoid false claim about stripping 'y'

I fixed them to prevent confusion for learners following the examples.
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