Skip to content
  • Blog (1)
  • About Us
  • Tags
  • Donations
1SMARTchicken - Code Made Easy
  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)

Category: Tutorials

1SMARTchicken - Code Made Easy

Category: Tutorials

  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)
  • Blog (1)
  • About Us
  • Tags
  • Donations
1SMARTchicken - Code Made Easy
  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)
1SMARTchicken - Code Made Easy

Category: Tutorials

  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)
  • Home
  • Tutorials
  • Page 8
Python Tutorials

Python – Sorting List Items

December 9, 2024 / Python Tutorials, Tutorials / List, Python List

Python list items can be sorted using the sort() method in specified orders including reverse order.

Python Tutorials

Python – Copying Lists

December 9, 2024 / Python Tutorials, Tutorials / List, Python List

Python lists can be copied to a new list using the copy() method, list() function, or slice operator.

Python Tutorials

Python – Joining Two or More Lists

December 9, 2024 / Python Tutorials, Tutorials / List, Python List

There are several ways to join, or concatenate, two or more lists in Python.

Python Tutorials

Python – Creating and Using Tuples

November 10, 2024 / Python Tutorials, Tutorials / Python Tuple

Python tuples are used to store multiple items in a single variable, and unlike a list, are unchangeable.

Python Tutorials

Python – Accessing Tuple Items

November 5, 2024 / Python Tutorials, Tutorials / Python Tuple

Python tuple items are indexed and can be accessed by referring to their index number.

Python Tutorials

Python – Extracting Tuple Items to Variables

November 7, 2024 / Python Tutorials, Tutorials / Python Tuple, Variable

When creating a Python tuple, items are normally assigned to it (“packing” a tuple). Extracting the items into variables is called “unpacking” the tuple.

Python Tutorials

Python – Updating Tuples

November 7, 2024 / Python Tutorials, Tutorials / Python Tuple

Python tuples are unchangeable, meaning that you cannot change, add, or remove items once the tuple is created. But there are some workarounds.

Python Tutorials

Python – Looping Through a Tuple

November 9, 2024 / Python Tutorials, Tutorials / Loop, Python Tuple

Python tuple items can be looped through and accessed using a for loop or while loop.

Python Tutorials

Python – Joining Two or More Tuples

November 9, 2024 / Python Tutorials, Tutorials / Python Tuple

To join two or more Python tuples the + operator is used.

Python Tutorials

Python – Creating and Using Sets

November 11, 2024 / Python Tutorials, Tutorials / Python Set

Python sets are used to store multiple items in a single variable, and unlike a list, are unordered, unchangeable, and unindexed.

Python Tutorials

Python – Accessing Items in a Set

November 27, 2024 / Python Tutorials, Tutorials / Loop, Python Loop, Python Set

A specific item cannot be accessed in a set by referring to an index or a key. To access items, a for loop or the in keyword can be used.

Python Tutorials

Python – Adding Items to a Set

November 27, 2024 / Python Tutorials, Tutorials / Python Set

Once a Python set is created, you cannot change its items, but you can add new items using the add() method and update() method.

Python Tutorials

Python – Removing Items from a Set

November 28, 2024 / Python Tutorials, Tutorials / Python Set

Once a Python set is created, you cannot change its items, but you can remove items using the remove(), discard(), pop(), and clear() methods, and the del keyword.

Python Tutorials

Python – Looping Through a Set

November 28, 2024 / Python Tutorials, Tutorials / Loop, Python Loop, Python Set

Python set items can be accessed by looping through them using a for loop.

Python Tutorials

Python – Joining Two or More Sets

December 8, 2024 / Python Tutorials, Tutorials / Python Set

Python sets can be joined (combined) using the union(), update(), intersection(), difference(), and symmetric_difference() methods.

Python Tutorials

Python – Accessing Items in a Dictionary

December 26, 2024 / Python Tutorials, Tutorials / Python Dictionary

Items in a Python dictionary can be accessed by referring to its key name using several methods.

Python Tutorials

Python – Changing Items in a Dictionary

December 28, 2024 / Python Tutorials, Tutorials / Python Dictionary

Items in a Python dictionary can be changed by referring to its key name or using the update() method.

Python Tutorials

Python – Adding Items to a Dictionary

December 28, 2024 / Python Tutorials, Tutorials / Python Dictionary

Adding an item to a Python dictionary is done by using a new index key and assigning a value to it.

Python Tutorials

Python – Removing Items from a Dictionary

December 28, 2024 / Python Tutorials, Tutorials / Python Dictionary

There are multiple ways to remove items from a Python dictionary: the pop(), popitem(), and clear() methods, as well as the del keyword.

Python Tutorials

Python – Looping Through a Dictionary

December 30, 2024 / Python Tutorials, Tutorials / Python Dictionary

Python dictionary items can be accessed by looping through them using a for loop.

← Previous 1 … 7 8 9 10 Next →

or View All Tags

Tutorials

  • HTML Tutorials (40)
  • CSS Tutorials (45)
    • CSS Flexbox (12)
  • JavaScript Tutorials (18)
  • jQuery Tutorials (13)
  • PHP Tutorials (0)
  • SQL Tutorials (0)
  • Python Tutorials (79)
    • Python File Handling (4)
    • Python and MySQL (11)
  • WordPress Tutorials (0)

Reference

  • HTML Reference (244)
    • HTML Tags (107)
    • HTML Attributes (46)
    • HTML Events (76)
    • HTML Resources (15)
  • CSS Reference (309)
    • CSS Selectors (55)
    • CSS Properties (220)
    • CSS Functions (17)
    • CSS Resources (17)
  • JavaScript Reference (556)
    • JavaScript Selectors (7)
    • JavaScript Operators (12)
    • JavaScript Statements (17)
    • JavaScript Methods (285)
    • JavaScript Properties (162)
    • JavaScript RegExp (45)
    • JavaScript Resources (28)
  • jQuery Reference (220)
    • jQuery Selectors (54)
    • jQuery Methods (140)
    • jQuery Ajax Methods (16)
    • jQuery Properties (17)
    • jQuery Resources (9)
  • PHP Reference (460)
    • PHP Keywords (59)
    • PHP Functions (400)
    • PHP Constants (0)
    • PHP Resources (1)
  • SQL Reference (290)
    • SQL Keywords (59)
    • MySQL Functions (138)
    • SQL Server Functions (83)
    • SQL Resources (10)
  • Python Reference (94)
    • Python Methods (86)
    • Python Resources (8)
  • WordPress Reference (0)

Snippets

  • HTML Snippets (3)
  • CSS Snippets (12)
  • JavaScript Snippets (5)
  • jQuery Snippets (8)
  • PHP Snippets (1)
  • SQL Snippets (3)
  • Python Snippets (1)
  • WordPress Snippets (36)
1SMARTchicken - Code Made Easy

333 Washington Blvd.
Suite 126
Marina del Rey, CA 90292
United States

contact2026@1smartchicken.com

  • About Us
  • Privacy Policy
  • Cookie Policy
  • Terms & Conditions

Search for Code:

or View All Tags

Copyright © 2025 1SMARTchicken | All Rights Reserved.