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

Fork, Commit, Merge - Easy Issue 1 (Python) #1503

Open
nikohoffren opened this issue Nov 11, 2023 · 1 comment
Open

Fork, Commit, Merge - Easy Issue 1 (Python) #1503

nikohoffren opened this issue Nov 11, 2023 · 1 comment

Comments

@nikohoffren
Copy link
Member

Fork, Commit, Merge - Easy Issue 1 (Python)

Simple Python Program to Interact with Lists

Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!

How to get started

Start by opening the tasks/python/easy directory from the root of the project.
Then open number_list.py file and start working on your solution!

Description

The aim of this task is to create a Python script that creates a list of numbers and performs simple operations on it. Specifically, the program should create a list of the first 10 natural numbers (1 through 10), print the list and print the sum of the numbers in the list.

Acceptance Criteria:

  • The program should create a list of the first 10 natural numbers.
  • The program should print the created list to the console.
  • The program should print the sum of the numbers in the list.

Hint: You can use Python's built-in sum function to calculate the sum of numbers in a list.

How to run

To test the program, you can run python3 tasks/python/easy/number_list.py to see if it works as expected.


To work with this issue, you need to have Python installed to your local machine.
Check out README.md for more instructions of installing Python and how to make a pull request.

Feel free to ask any questions here if you have some problems!

Also, kindly give this project a star to enhance its visibility for new developers!

Rupa-Rd added a commit to Rupa-Rd/fork-commit-merge that referenced this issue Dec 9, 2023
nikohoffren added a commit that referenced this issue Dec 9, 2023
Karthik110505 added a commit to Karthik110505/fork-commit-merge that referenced this issue Jan 5, 2024
nikohoffren added a commit that referenced this issue Jan 5, 2024
saquib000 added a commit to saquib000/fork-commit-merge that referenced this issue Jan 9, 2024
nikohoffren added a commit that referenced this issue Jan 9, 2024
solved: Python-Easy-1-number_list.py #1503
@VAIBHAVPANT07
Copy link
Contributor

VAIBHAVPANT07 commented Feb 2, 2024

Done with writing program #2037 .Kindly merge my request

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

No branches or pull requests

2 participants