Comments (9)
I am interested in contributing to this resource compilation, so if you like this suggestion could you assign it to me?
from ultimate-python.
Hi @ArcXeon thanks for raising up your interest. How were you planning to teach file handling concept(s) to people?
Also, what did you think of these lessons?
- https://github.com/huangsam/ultimate-python/blob/master/ultimatepython/advanced/context_manager.py
- https://github.com/huangsam/ultimate-python/blob/master/ultimatepython/advanced/data_format.py
I'd like to know if there's more that can be done in those lessons to showcase file handling / file formats.
from ultimate-python.
Hi @huangsam, the context_manager.py provides a good example of how to create and use context managers in Python, specifically for handling file-like objects using the StringIO class. But I think it doesn't directly demonstrate all aspects of file handling basics (like reading, writing, or appending to files on disk).
An additional code can be created to demonstrate reading from, writing to, or appending to real files on disk using the built-in open function and various modes like "r" (read), "w" (write), and "a" (append). This would give new learners a more comprehensive understanding of file handling in Python. I think this code can be added in the syntax with beginner level difficulty.
from ultimate-python.
I think that file oriented stuff is complex. Not sure if it's what I would teach early on. Also we'd likely want to limit to in-memory file manipulation due to the nature of this repo
Do you think adding code or comments to the later lessons could help here?
from ultimate-python.
So maybe it can be added in advanced or maybe just adding it as an external resource along with the context manager or data format.
from ultimate-python.
Yea how does that sound?
from ultimate-python.
Hi @ArcXeon do you have any additional Qs or concerns? If not, feel free to create the PR in the next few weeks. Looking forward to more collaborations together!
from ultimate-python.
@huangsam So like I should proceed with my last suggestion and make a PR ?
from ultimate-python.
Yes you can make a PR
from ultimate-python.
Related Issues (13)
- to add new codes for file access modes in (advanced/file_handling.py) HOT 4
- Translation request HOT 2
- futurecoder HOT 1
- Can I use this code for online lecture? HOT 4
- Email Extraction Regex for better Regular Expressions Understanding HOT 2
- Design Patterns in Python HOT 2
- "AssertionError" in running the file expression.py HOT 4
- Adding French and Japanese README.md HOT 6
- Deepfake HOT 1
- djdjd
- Adding Bitwise Operators HOT 2
- Adding project-based-learning repo to additional resources
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultimate-python.