Sudip Bhandari

Sign up

Sudip Bhandari

homeASP-NETC#PythonDjangonewsletter
Series

Python

Python basics to advance

Articles in this series

Rock, paper, scissor in python

Sudip BhandariSudip Bhandari
May 6, 20241 min read 56 views

import random def get_player_choice(): choices = ['rock', 'paper', 'scissors'] player_choice = input("Choose rock, paper, or scissors:...

Rock, paper, scissor in python

Exception Handling in Python

Sudip BhandariSudip Bhandari
May 6, 20242 min read 20 views

The try block lets you test a block of code for errors. The except block lets you handle the error. The finally block lets you execute code,...

Exception Handling in Python

Functions and Classes in Python

Sudip BhandariSudip Bhandari
May 6, 20243 min read 19 views

Defining a function def keyword, followed by the function name and parentheses (). Any parameters go inside the parentheses. def...

Functions and Classes in Python

Install Python on Windows, Linux and Mac OS

Sudip BhandariSudip Bhandari
May 6, 20242 min read 22 views

Step 1: Download the Python Installer: The first step is to download the latest version of Python from the official Python website...

Install Python on Windows, Linux and Mac OS

Conditional statements and loops in python

Sudip BhandariSudip Bhandari
May 6, 20242 min read 20 views

Some of the python acceptable conditions Equals: a == b Not Equals: a != b Less than: a < b Less than or equal to: a <= b Greater than: a >...

Conditional statements and loops in python

Varibles in Python

Sudip BhandariSudip Bhandari
May 5, 20242 min read 25 views

Variables In Python, variables are created when you assign a value to them Example: x = 5 Unlike some programming languages, Python has no command...

Varibles in Python

©2025 Sudip Bhandari

Privacy policy·Terms

Powered by Hashnode