Category: Python

  • Python Indentation & Basic Syntax & Comment Statemetns

    In this tutorial, you will learn about Python statements, why indentation is important in the use of comments in programming. Python Statement Instructions that a Python interpreter can execute are called statements. For example, a = 1 is an assignment statement. if statement, for statement, while statement, etc. are other kinds of statements which will be discussed later. Multi-line statement In Python, the […]

  • Senior Python Developer Interview Questions

    Looking for a Senior Python Developer to get the most out of your Development team? Ask a balanced set of technical as well as non-technical interview questions and hire the best candidate for the job. Jump to section: Introduction Computer Science questions Role-specific questions Senior Python Developer Interview Questions Technical roles demand strong candidates with […]

  • Python Oops Interview Questions

    Object-oriented programming system or OOPS is a computer programming model that designs or arranges software for data, or more specifically, objects rather than functions and logic. An object can be defined as a data field that has unique attributes and behaviour. Top 10 OOPS Interview Questions in 2021 What is OOPs?Difference between Procedural programming and OOPs?Why use OOPs?What are the basic concepts […]

  • Data types in Python or Different Types of Objects in Python

    In Python, everything is treated as an object or instance of an object. So depending on the nature of the objects the instances behave. Accordingly, the nature of data types the data types are categorized into Mutable and Immutable data types. Every variable in python holds an instance of an object. There are two types of objects in python […]

  • Python Mutable vs Immutable

    To get started, it’s important to understand that every object in Python has an ID (or identity), a type, and a value, as shown in the following snippet: age = 42print(id(age)) # idprint(type(age)) # typeprint(age) # value[Out:]10966208<class ‘int’>42 Once created, the ID of an object never changes. It is a unique identifier for it, and […]

  • Best Python IDEs And Code Editors

    Python is one of the famous high-level programming languages that was developed in 1991. Python is mainly used for server-side web development, development of software, maths, scripting, and artificial intelligence. It works on multiple platforms like Windows, Mac, Linux, Raspberry Pi etc. Before exploring more about Python IDE, we must understand what is an IDE! What […]

  • Regular Expression In Python

    The module defines several functions, constants, and an exception. Some of the functions are simplified versions of the full-featured methods for compiled regular expressions. Most non-trivial applications always use the compiled form. re.compile(pattern, flags=0) Compile a regular expression pattern into a regular expression object, which can be used for matching using its match() and search() methods, described below. The expression’s […]

  • Python Exception Handling

    Until now error messages haven’t been more than mentioned, but if you have tried out the examples you have probably seen some. There are (at least) two distinguishable kinds of errors: syntax errors and exceptions. 1. Syntax Errors Syntax errors, also known as parsing errors, are perhaps the most common kind of complaint you get while you are […]

  • File Handling In Python

    There are always two parts of a file in the computer system, the filename and its extension. Also, the files have two key properties – its name and the location or path, which specifies the location where the file exists. The filename has two parts, and they are separated by a dot (.) or period. Figure – File and its path: A built-in open method is used to create […]

  • Python Oops Concept

    A Word About Names and Objects Python Scopes and Namespaces 2.1. Scopes and Namespaces Example A First Look at Classes 3.1. Class Definition Syntax 3.2. Class Objects 3.3. Instance Objects 3.4. Method Objects 3.5. Class and Instance Variables Random Remarks Inheritance 5.1. Multiple Inheritance Private Variables Odds and Ends Iterators Generators Generator Expressions Classes provide […]