New Python Program: Basic File Manipulation

オープン
#8 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
cli

調査の方向性

issue の説明に従って file_manipulation.py を作成し、まず必要なメニュー操作と database.txt のワークフローを確認します。Python 3 でプログラムを実行し、表示、追加、更新、削除、無効な入力、ファイルが存在しない場合、ファイルエラーのケースを手動で確認します。各操作が機能し、操作のたびに更新されたデータが保存されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

good first issue hacktoberfest

Hello Python enthusiasts! Let's expand our repository with a Python program that demonstrates basic file manipulation operations. This beginner-friendly task involves reading from and writing to text files, allowing users to create, read, update, and delete entries in a simple database file. This task will showcase file handling, loops, and conditional statements in Python.

Tasks:

  • Create a Python program that reads data from a text file (database.txt) if it exists.
  • Allow users to view existing entries, add new entries, update existing entries, and delete entries.
  • Implement user-friendly menus and prompts for each operation.
  • Ensure the program handles errors gracefully, such as invalid file access or incorrect user inputs.
  • Save the updated data back to the text file after each operation.

Guidelines:

  • Use Python 3.x for the program.
  • Utilize file handling functions (open, read, write, close) to manipulate the database file.
  • Include comments in your code to explain the logic and functionality.
  • Test the program thoroughly, including edge cases and error scenarios.

Example:

Welcome to the Basic File Manipulation Program!

1. View Entries
2. Add Entry
3. Update Entry
4. Delete Entry
5. Exit

Select an option: 2
Enter name: John Doe
Enter age: 30
Entry added successfully!

1. View Entries
2. Add Entry
3. Update Entry
4. Delete Entry
5. Exit

Select an option: 1
Entries:
1. Name: John Doe, Age: 30

...

How to Contribute:

  1. Fork this repository.
  2. Create a new Python file for the Basic File Manipulation Program: file_manipulation.py.
  3. Write the Python program following the specified tasks and guidelines.
  4. Test the program thoroughly to ensure it functions correctly.
  5. Commit your changes: git commit -m "Add Basic File Manipulation Program"
  6. Push to your branch: git push origin add-file-manipulation
  7. Open a pull request to this repository.

Your contribution will provide users with a practical understanding of file manipulation in Python. Thank you for creating this useful Python program for our repository!

主要言語
Python
スター
0
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

KALIIOWORK/basic_python_programs のほかの issue

KALIIOWORK/basic_python_programs の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。