Skip to content
Logo header
  • Spreadsheets
  • Python
  • About

Category: Python

link to Python: Average Of List Of Numbers – Without Imports [One-Liner]

Python: Average Of List Of Numbers – Without Imports [One-Liner]

How do you calculate the simple average of a list of numbers in Python, without needing to import any libraries? Unfortunately, there's no native average or avg function in Python to easily...

Continue Reading
link to Check For Word In String: Python 1 Liner

Check For Word In String: Python 1 Liner

How can you check if a word is found in a string using Python? Recently, I had an issue where I wanted to exclude strings from a list if they contained a certain word. I thought I could use the...

Continue Reading
link to Sort List Of Dictionaries By Key: Python 1 Liner

Sort List Of Dictionaries By Key: Python 1 Liner

How can you sort a list of dictionaries by a key contained in each dictionary using Python? Can you do it in 1 line to show off your friends? Of course! To sort a list of dictionaries use the...

Continue Reading
link to Python: Sort List From Second (or Nth Index) On

Python: Sort List From Second (or Nth Index) On

How do you sort a list by the second (or nth) element on in Python? How can you leave the first or nth elements in a list as they are but then have the remaining elements in the list sorted? When...

Continue Reading
link to Reverse Order Of List In Python Without For Loops (Examples, One-Liners, No Imports)

Reverse Order Of List In Python Without For Loops (Examples, One-Liners, No Imports)

There have been times when after creating a list in Python I've wanted to sort a list and then have the list reversed from ascending to descending. To reverse the order of a list in Python use...

Continue Reading
link to How Many Spaces Is A Tab: 2, 3, 4 or 5?

How Many Spaces Is A Tab: 2, 3, 4 or 5?

In Microsoft Word you can control whether or not you want to see the white space characters in your document. This helps to check you haven't incorrectly inserted a tab where a space should have gone...

Continue Reading
« PREV Page 1 … Page 13 Page 14 Page 15 Page 16 NEXT »

About

Welcome to ScriptEverything.com!
On this website you'll find my explorations with code and apps. I enjoy programming using Python and Javascript, and I tango daily with a spreadsheet in my line of work. When I'm not behind a computer or at work, you'll find me wandering through the bush with my kids getting lost.

  • Send A Message
  • Privacy Policy
© 2023 Copyright > Script Everything