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

Updated dates for Python added definitions and codeblocks #5492

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tanmaytare
Copy link

@tanmaytare tanmaytare commented Oct 14, 2024

Description

Issue Solved

Closes #5392

Made changes added example for dates.md

Type of Change

  • Adding a new example
  • Editing an existing entry (fixing a typo, bug, issues, etc)
  • Updating the documentation

Checklist

  • [✓] All writings are my own.
  • [✓] My entry follows the Codecademy Docs style guide.
  • [✓] My changes generate no new warnings.
  • [✓] I have performed a self-review of my own writing and code.
  • [✓] I have checked my entry and corrected any misspellings.
  • [✓] I have made corresponding changes to the documentation if needed.
  • [✓] I have confirmed my changes are not being pushed from my forked main branch.
  • [✓] I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • [✓] I have linked any issues that are relevant to this PR in the Issues Solved section.

@CLAassistant
Copy link

CLAassistant commented Oct 14, 2024

CLA assistant check
All committers have signed the CLA.

@SaviDahegaonkar SaviDahegaonkar self-assigned this Oct 14, 2024
@SaviDahegaonkar
Copy link
Collaborator

Hey @tanmaytare , This PR does not mention the issue to which this PR relates to, due to which I find this PR invalid, you can raise new PR mentioning the same.

Thanks.

@mamtawardhani
Copy link
Collaborator

@SaviDahegaonkar Please review this at the earliest?

@mamtawardhani mamtawardhani linked an issue Oct 31, 2024 that may be closed by this pull request
3 tasks

Here's a more detailed example of using datetime.date() to create a date object and access its components:

```python
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
```python
```py

print("Day:", day)
```

```Output:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
```Output:
The above example demonstrates how to create a date object in Python using the `date` class:
```shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Python entries status: review 1️⃣ completed status: under review Issue or PR is currently being reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Edit] Python Date
5 participants