Database is a collection of information that is organized so that it can be easily accessed, managed and updated. Databases typically contain aggregations of data records or files, containing information. A database is an abstraction over an operating system’s file system that makes it easier for developers to build applications that create, read, update and delete persistent data.
Databases make structured storage reliable and fast. They also give you a framework for how the data should be saved and retrieved instead of having to figure out what to do with the data every time you build a new application.
Files are named locations on disk to store related information. Images, text, video, audio, scripts etc. are the may types of files. In Python there are 2 types of files: (i) Binary (ii) Text
Python has several functions for creating, reading, writing, updating and deleting files. Hence, in Python, a file operation takes place in the following order:
(i) Open a file
(ii) Read or write(any operation)
(iii) Close the file
file = open("samplefile.txt") # equivalent to 'r' or 'rt'
file = open("samplefile.txt",'w') # write in text mode
file = open("img.bmp",'r+b')…
Yeah ! Python is an interpreted language ( it means a computer program that translates and executes, line by line, a program written in a high level language), although compilation is a step. Python code, written in .py file is compiled to what is called bytecode and stored in .pyc format. This bytecode is a low level set of instructions that can be executed by an interpreter. The bytecode compilation happened internally, and almost completely hidden from developer. Bytecode instructions are executed on Virtual Machine.
Searching in a dictionary is way much faster than searching in a list, it is…
The price of “anything” is the amount of “time”, U xchange for it. Education | Technology | Data Science | Statistics | History