Software Engineering Function scope in Python Function scope in Python means how a particular function is accessible from different components depending on LEGB (Local -> Enclosing -> Global -> Built-in) rule.
Software Engineering Capitalize letters in Python In this article, we have covered how to capitalize the first letter using capitalize() in Python, convert the entire string to upper-case, convert the entire string to lower-case and capitalize first letter of each word.
Software Engineering Check if file exists in Python In this article, we have explored different ways to check if a file exists in Python. We have explored 6 different methods like try catch block, isfile, pathlib and much more.
Software Engineering Introduction to Single Page Applications with Flask and AJAX Let us have a look at what single-page applications are and how can we create one using AJAX, with Flask as the back-end.
Software Engineering Strings in Python [Complete Guide] In this article, we will learn how to implement strings in Python and explore the various string operations that we can use.
Software Engineering List of Top Users in CodeForces In this article, we will make a list of all the users of Codeforces and store their information in a JSON file. We will use the json and urlib.request library of python for the purpose.
Software Engineering Different ways to select random element from list in Python Following are the different ways of selecting a random element from a list: random.randrange(), random.random(), random.choice() and random.randint().
Software Engineering File Hosting Service in Django In this article, we will learn to create a file hosting service webpage in Django wherein one can host their files on the local server and generate a shareable URL link to access the file.
Software Engineering Basic Bits hacks in Python We have covered several basic bit hacks in Python which everyone should know to write optimized code. Tricks include find sign of an integer, negate an integer and more.
Software Engineering Cache in Python We have explored caching by demonstrating it with a Python code example where intermediate results are cached and improved the overall performance. This is done through functools.lru_cache in Python.
Software Engineering Pass Variable By Reference in Python In this article, we have explored how to pass a variable by reference to a function in Python. We have demonstrated the ideas by Python code snippets.
Software Engineering Different Dictionaries in Python There are 4 types of dictionaries in Python that are OrderedDict, DefaultDict, ChainMap and Counter.
Software Engineering A static Portfolio Website in Django In this article, we will be creating a static Portfolio website using Django and understand the structure of the Django framework. This article would cover all the commands
Software Engineering Dictionary in Python A dictionary is a collection of key:value pairs which are unordered, changeable and indexed. In Python, dictionaries are written with curly brackets, and they have keys and values in them.
Software Engineering Web Scraping a CodeForces profile in Python In this article, we will inspect a Codeforces profileβs site structure and scrape the required profile data. We will use the Beautiful Soup and Requests libraries of python for the purpose.
Software Engineering Developing static webpage application using Flask with no database In this article, we have built basic static webpage application in Flask with no database. This results in a high performance webpage with a lightweight web server which is the direct result of not adding a database.
Software Engineering OrderedDict objects in Python An ordereddict is a subclass of the dictionary object in Python. It supports two methods: popitem() and move_to_end(). We have explained it in depth.
Software Engineering Different ways to sort a counter in Python In this article, we have explored Different ways to sort a counter in Python which includes using counter.most_common(), sorted() to solve the keys and sort values in pair.
Software Engineering All about Python Dictionary In this article, you will learn everything about Python dictionaries which is an useful in-built data structure frequently used to handle data. Dictionaries are unordered mapping for storing items.
Software Engineering Application Structure of Django Django is one of most widely used Python web development framework and powers several popular applications. In this article, we have explored the structure of a Django web application. It follows Model, Template and View (MTV).
Software Engineering Create Login Page in Flask using sessions There are many ways to create user login in Flask like using flask-login or JWT and many more. But using sessions is the simplest to logged the user in or out which we have explored in this article.
Software Engineering Override __getattr__ in Python Methods like __getattr__, is called when an atrribute is not found in the usual place(i.e. it is not an instance attribute nor is it found in the class tree for self).
Software Engineering NamedTuples objects in Python Using NamedTuples in Python helps you self-document your code conveying meaning to each field. Its methods allow you to work more easily with data.
Software Engineering Class based Generic Views in Django Class-Based Generic Views are a superior set of Built-in views that are used for the implementation of selective view strategies such as Create, Retrieve, Update, Delete.
Software Engineering Creating JWT Authentication in REST API in Flask JSON Web Token is a string which is sent in HTTP request from the browser to the server to validate authenticity of the client. We have demonstrated how to create JWT Authentication in REST API in Flask.