• 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

How to use Sorting in Python

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

Sorting The easiest way to sort is with the sorted(list) function, which takes a list and returns a new list with those elements in sorted order. … [Read more...] about How to use Sorting in Python

Filed Under: Dictionary Author: PFB Staff Writer

Python : Tuples Overview

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

Tuple is another data type in Python. A tuple consists of values separated by commas. Tuples are always enclosed in parentheses. Tuples are for … [Read more...] about Python : Tuples Overview

Filed Under: Basics Author: PFB Staff Writer

How to use Strings Count Method

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

Count Occurrences of a string This small script will use Pythons count method to count the numberof occurrences of a string. s = "Count, the number … [Read more...] about How to use Strings Count Method

Filed Under: Code Snippets Author: PFB Staff Writer

Python Password Generator

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

Password Generator You can use Pythons string and random modules to generate passwords. The string module contains a number of useful constants and … [Read more...] about Python Password Generator

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

Common Dictionary Operations in Python

Author: PFB Staff Writer
Last Updated: February 2, 2021

Dictionary A dictionary constant consists of a series of key-value pairs enclosed by curly braces { } With dictionaries you can store things so … [Read more...] about Common Dictionary Operations in Python

Filed Under: Dictionary, Dictionary Data Structure In Python Author: PFB Staff Writer

Using Telnet in Python

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

Using Telnet in Python To make use of Telnet in Python, we can use the telnetlib module. That module provides a Telnet class that implements the … [Read more...] about Using Telnet in Python

Filed Under: Code Snippets, telnet 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

Split a domain with urlparse

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

Split a domain This is a simple script to split the domain name from a URL. It does that by usingPythons urlparse module. import urlparse url = … [Read more...] about Split a domain with urlparse

Filed Under: Code Snippets Author: PFB Staff Writer

Basic date and time types in Python

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

Date and Time The date, datetime, and time objects all support a strftime(format) method, to create a string representing the time under the control … [Read more...] about Basic date and time types in Python

Filed Under: Basics Author: PFB Staff Writer

Python Dictionary Basic Usage

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

Dictionary is another data type in Python. Dictionary Overview A dictionary maps a set of key to a set of values. Dictionaries in Python are also … [Read more...] about Python Dictionary Basic Usage

Filed Under: Dictionary Author: PFB Staff Writer

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