Google Colab is the most widely used Python Notebook to quickly test your Python code snippets, if you have a use case where you want to upload a certain file say .csv, .json, or .txt, and wondering how to upload it so you can use it, then you can make use of files from google.colab module,
Example:from google.colab import files
uploaded = files.upload()
Choose File: sample-json-file.txt
(text/plain) - 358 bytes, last modified: n/a - 100% done
Saving sample-json-file.txt to sample-json-file.txt
When you execute this code snippet you will get the option to upload a file,

Now you can read the file and use it the way you want in your code!
import json
json_file = open("sample-json-file.txt", "r")
json_str = json_file.read()
json_obj = json.loads(json_str)
for element in json_obj:
print(element['name'])
print(element['age'])
print(element['city'])
print("-----------")
- Gmail Error Bad Request Your client has issued a malformed or illegal request
- Fix: Cannot contact reCAPTCHA. Check your connection and try again.
- Fetch as Google Crawl Error or Redirected Status
- Page actions are temporarily disabled [Google Search Console Page Crawling]
- How to Upload a File to Google Colab (txt, csv, json, xml, xlsx)
- Find Nearest Gas Station using Google Map App on your Phone
- How to do a Reverse Image Search Using Google Tools
- How to remove disable google search blue triangle
- Google translate in spreadsheet
- [Fix] reCAPTCHA not working in Web Browser
- Installing Google Cloud macOS SDK
- Turning Off Chat in Gmail
- How to get nest aware on iPhone
- Google Search Console: HTTPS is invalid and might prevent it from being indexed
- How to Hum a Song to Google to find it out! [Android and iPhone]
- Fetch More then 10 Links Per Page in Google Search Result
- Google Local Guide Program and Perks of Contributing to Google Maps
- Resolving DNS_PROBE_FINISHED_NXDOMAIN Google Chrome Error
- Google Celebrates Rosa Bonheur 200th birthday with a Google Doodle
- How to subscribe nest aware?
- How to Undo-Revert Sent Email in Google Gmail
- Enable Dark Mode in Google Search
- Enable Dark Mode in Gmail Desktop Browser
- Google Webmaster : An error has occurred. Please try again later
- How to insert image into Google Sheets cell
- Install Bash on Alpine Linux - Docker - Docker
- Remove Html head and body tags from ckeditor source - Html
- Installing JD Decompiler plugin in Eclipse IDE - Eclipse
- How to stop disable Facebook video autoplay during scroll - Facebook
- WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. - PIP
- Programmatically check if Facebook is installed on Android device - Android
- How to create MD5 digest in Notepad++ - NotepadPlusPlus
- [Java] Read a File with UTF-8 Encoding - Java