• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
PythonForBeginners.com

PythonForBeginners.com

Learn By Example

  • Home
  • Learn Python
    • Python Tutorial
  • Categories
    • Basics
    • Lists
    • Dictionary
    • Code Snippets
    • Comments
    • Modules
    • API
    • Beautiful Soup
    • Cheatsheet
    • Games
    • Loops
  • Python Courses
    • Python 3 For Beginners

Code

Comment out a block of code in Python

Author: Aditya Raj
Last Updated: March 30, 2021

There may be many situations while testing or debugging python programs where we want a certain statement in the code or a block of statements in the … [Read more...] about Comment out a block of code in Python

Filed Under: Code, Comments Author: Aditya Raj

Numeric Types in Python

Author: PFB Staff Writer
Last Updated: August 27, 2020

In any OOP language, there are many different data types. In Python, number data types are used to store numeric values. There are four different … [Read more...] about Numeric Types in Python

Filed Under: Basics, Code Author: PFB Staff Writer

Magic 8-ball Game Written in Python

Author: PFB Staff Writer
Last Updated: June 15, 2023

The Magic 8 Ball is a toy game for fortune-telling or seeking advice. In this article, we will implement the magic 8-ball game in Python. Table of … [Read more...] about Magic 8-ball Game Written in Python

Filed Under: Code, Code Snippets Author: PFB Staff Writer

Python Code : Convert KM/H to MPH

Author: PFB Staff Writer
Last Updated: August 27, 2020

Convert KM/H to MPH This script converts speed from KM/H to MPH, which may be handy for calculating speed limits when driving abroad, especially for … [Read more...] about Python Code : Convert KM/H to MPH

Filed Under: Code, Code Snippets Author: PFB Staff Writer

Python Code : Get all the links from a website

Author: PFB Staff Writer
Last Updated: August 28, 2020

Overview In this script, we are going to use the re module to get all links from any website. One of the most powerful function in the re module is … [Read more...] about Python Code : Get all the links from a website

Filed Under: Code, Code Snippets, crawler, Python On The Web Author: PFB Staff Writer

Primary Sidebar

Menu

  • Basics
  • Cheatsheet
  • Code Snippets
  • Development
  • Dictionary
  • Error Handling
  • Lists
  • Loops
  • Modules
  • Scripts
  • Strings
  • System & OS
  • Web

Get Our Free Guide To Learning Python

Most Popular Content

  • Reading and Writing Files in Python
  • Python Dictionary – How To Create Dictionaries In Python
  • How to use Split in Python
  • Python String Concatenation and Formatting
  • List Comprehension in Python
  • How to Use sys.argv in Python?
  • How to use comments in Python
  • Try and Except in Python

Recent Posts

  • Count Rows With Null Values in PySpark
  • PySpark OrderBy One or Multiple Columns
  • Select Rows with Null values in PySpark
  • PySpark Count Distinct Values in One or Multiple Columns
  • PySpark Filter Rows in a DataFrame by Condition

Copyright © 2012–2025 · PythonForBeginners.com

  • Home
  • Contact Us
  • Privacy Policy
  • Write For Us