The range() function in Python is used to generate a sequence of numbers. It can take atleast one (stop) and atmost 3 arguments: start, stop, and step.
Category: Python
Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991…
In this category, we will cover topics like data types, operators, keywords, functions, loops, conditional statements, etc….
Python | loops
In Python, loops are used to repeatedly execute a block of code. There are two main types of loops: for loops and while loops.
Python | Conditional Statements
In Python, conditional statements are used to control the flow of a program based on certain conditions. They allow you to check for certain conditions, and then execute code depending on whether or not those conditions are met. The most commonly used conditional statements in Python are if, elif, and else.
Python | lambda function
A lambda function in Python is a small anonymous function, which can take any number of arguments but can only have one expression.
The syntax for a lambda function is:
lambda arguments: expression
It is also known as anonymous function because it doesn’t have any name and it is defined using the keyword “lambda“.
Python | How To Define a User Defined Function in Python?
To define a user defined function in Python, you can use the def keyword followed by the function name and a set of parentheses that may include arguments.
Python | Functions
a function is a block of code that performs a specific task and returns a result. Functions are used to modularize and organize code, making it easier to reuse and maintain.
Is Python Dynamically typed programming language or Statically typed?
Python is a Dynamically typed programming language.What are the differences between statically typed and dynamically typed languages?
Infosys – HackWithInfy Coding practice problem – 2 : Players
Ravi and Shanu play a game. Initially they write N random numbers on a sheet of paper. Suppose the integers written are a1, a2, a3 …..,an. Now they start playing a game. In each turn a player selects a number and erases it from the sheet.
Infosys – HackWithInfy Coding practice problem – 1 : Auction Winner
You are at a fine art auction and are looking for a specific painting. There are N people who have gathered to place a bid on that same painting.The rules of at this auction are a bit different, Such that, the person with the lowest unique bid wins the auction.
Implementation of Linked List in Python
In this post, We will see the implementation of Linked-List in python.