• 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

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

Python Code: Celsius and Fahrenheit Converter

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

Overview This script converts temperature between Fahrenheit to Celsius. To create a python converter for celsius and fahrenheit, you first have to … [Read more...] about Python Code: Celsius and Fahrenheit Converter

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

Python Code: Calculate the average score

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

Overview This script will calculate the average of three values. Make sure to put in "int" before the raw_input function, since we are using … [Read more...] about Python Code: Calculate the average score

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

Python Calendar : Show calendars

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

This script will ask for an input of a year. It will then take that input and return the calendar for that entire year. import calendar print "Show a … [Read more...] about Python Calendar : Show calendars

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

Urllib2 – User Agent

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

Overview This post will show how to add headers to a HTTP request. By default urllib2 identifies itself as Python-urllib/2.7 : GET / HTTP/1.1" … [Read more...] about Urllib2 – User Agent

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

Booleans, True or False in Python

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

What are Boolean? Boolean values are the two constant objects False and True. They are used to represent truth values (other values can also be … [Read more...] about Booleans, True or False in Python

Filed Under: Basics, boolean Author: PFB Staff Writer

Strings Formatting in Python

Author: PFB Staff Writer
Last Updated: May 5, 2022

String formatting is a method to insert a variable or another string into a predefined string. Whenever we need to insert a user input to a string, we … [Read more...] about Strings Formatting in Python

Filed Under: Basics Author: PFB Staff Writer

Python Join Examples

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

Overview This post will show some examples of the Python join method. What is important to remember is that the character that joins the elements is … [Read more...] about Python Join Examples

Filed Under: Code Snippets, Data Types, Join Author: PFB Staff Writer

Python Standard Library vs Python Package Index

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

Python Modules In this post, we'll look at the Python Standard Library and Python Package Index Python Standard … [Read more...] about Python Standard Library vs Python Package Index

Filed Under: Modules In Python Author: PFB Staff Writer

Python Strings Quotes

Author: PFB Staff Writer
Last Updated: December 2, 2020

Overview Strings can be enclosed in single quotes or double quotes. Single quoted string can contain double quotes and double quoted string … [Read more...] about Python Strings Quotes

Filed Under: Basics Author: PFB Staff Writer

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 15
  • Go to page 16
  • Go to page 17
  • Go to page 18
  • Go to Next Page »

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