Keen Learner and Exp... • 25d
Day 19 of learning python as a beginner. Topic: JSON file (exploring surface). JSON stands for JavaScript Object Notation however it is not limited to JavaScript only. JSON is used to store and share structured data which is both readable by human and understandable by machines. It's syntax includes a list within which all the dictionary lies (JSON's data is a key value pair). For creating JSON in python you have to import json. I created a simple data base of students which can be viewed, added and deleted. I also used different types of values so that I can remember that JSON is not limited to strings only. For writing a JSON you use the function json.dump (this writes json directly to a file) while json.dumps only convert python data into json strings and does not write to file (the difference in both dump is of 's' if you are wondering). I also found out that it is not always necessary to put a def __init__ in a class when sometimes you just don't need to initialise attributes. I would appreciate your suggestions of future learning topics and challenges, I would also appreciate your thoughs regarding my code and if I have done something wrong here which didn't caught my attention.
Keen Learner and Exp... • 1m
Day 10 of learning python as a beginner. Topic: File I/O You guys remeber I once created a to-do list (most probably on day 7)? many amazing people suggested that I should also put a history of tasks. At that time I was not aware about the File I/O
See MoreCo -founder at Trade... • 1y
Prefix data structure, often referred to as a trie, is a tree-like data structure used for storing and retrieving a dynamic set of strings efficiently, particularly when dealing with prefix-based operations. #Datastructure #codingjourney Prefix Expr
See MoreHey I am on Medial • 2m
hey guys , need bit of a help I tried removing that 'edit with lovable' from .apk file with manus (I know there are better ways to do , but I'm lazy) it gave a json file in return so gave manus that .json file and asked to create into .apk (ik
See MoreDownload the medial app to read full posts, comements and news.