• 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 Game : Rolling The Dice

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

Dice games are one of the easiest yet most entertaining games. In this article, we will implement the rolling dice game in Python using two … [Read more...] about Python Game : Rolling The Dice

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

How to Use sys.argv in Python?

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

Python provides us with different ways to handle inputs while programming. One such way is to use command line arguments for inputs while executing a … [Read more...] about How to Use sys.argv in Python?

Filed Under: System, System & OS Author: PFB Staff Writer

Using urllib2 with BeautifulSoup in Python

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

In yesterdays post I gave an intro to BeautifulSoup. Since BeautifulSoup is not getting the web page for you, you will have to use the urllib2 module … [Read more...] about Using urllib2 with BeautifulSoup in Python

Filed Under: Beautiful Soup Author: PFB Staff Writer

Monitor Apache / Nginx Log File

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

Count the number of hits in a Apache/Nginx This small script will count the number of hits in a Apache/Nginx log file. How it works This script … [Read more...] about Monitor Apache / Nginx Log File

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

Try and Except in Python

Author: PFB Staff Writer
Last Updated: May 20, 2020

Earlier I wrote about Errors and Exceptions in Python. This post will be about how to handle those. Exception handling allows us to continue our … [Read more...] about Try and Except in Python

Filed Under: Error Handling Author: PFB Staff Writer

BeautifulSoup Intro

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

What is BeautifulSoup? BeautifulSoup is a Python library from www.crummy.com What can it do On their website they write "Beautiful Soup parses … [Read more...] about BeautifulSoup Intro

Filed Under: Beautiful Soup, crawler Author: PFB Staff Writer

Log Checker in Python

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

Show all entries in a logfile This script will show all entries in the file that is specified in the log file variable. Log Checker Script In this … [Read more...] about Log Checker in Python

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

Variables in Python

Author: PFB Staff Writer
Last Updated: May 25, 2020

Variables You can use any letter, the special characters "_" and every number provided you do not start with it. White spaces and signs with special … [Read more...] about Variables in Python

Filed Under: Basics Author: PFB Staff Writer

Python : Guessing Game part 2

Author: PFB Staff Writer
Last Updated: July 15, 2021

Overview This small program extends the previous guessing game I wrote about in this : post "Python Guessing Game". Guessing Game In this game we will … [Read more...] about Python : Guessing Game part 2

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

Python : List examples

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

What are lists? Remember that a list is created with square brackets [ ] and the elements have to be within them. The elements in a list don't have … [Read more...] about Python : List examples

Filed Under: Basics, Lists Author: PFB Staff Writer

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 12
  • Go to page 13
  • Go to page 14
  • Go to page 15
  • Go to page 16
  • Interim pages omitted …
  • 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