• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Script Everything

  • Spreadsheets
  • Python
  • Blog

number

Python Ceiling Function: What Is It And How Does It Work?

August 6, 2022 by Ryan Sheehy

What is the ceiling function in Python, and how does it work? The ceiling function in Python is found in the math library and it's method name is ceil() which takes a sole numeric parameter. To use the ceiling function in Python you will need … [Read more...] about Python Ceiling Function: What Is It And How Does It Work?

Filed Under: number

Python Int Function: How It Works And Why You May Need To Create Your Own

March 29, 2022 by Ryan Sheehy

How does the int() function work I. Python and could you write your own function? The int(x, base=10) function in Python takes two parameters: the first parameter x being either a number or string and the second representing the base number to … [Read more...] about Python Int Function: How It Works And Why You May Need To Create Your Own

Filed Under: number

Change List Elements To Int In Python: 1 Line Of Code

March 25, 2022 by Ryan Sheehy

How do you convert a list of strings to a list of integers in Python? And can you do it with one line of code? To convert a list of strings to a list of integers use the built-in map() function if you know the contents of the original list will … [Read more...] about Change List Elements To Int In Python: 1 Line Of Code

Filed Under: lists , number , strings Tagged With: one-liners

** In Python In 2 Minutes With Code Examples

March 20, 2022 by Ryan Sheehy

What operator is used to raise a number to a power in Python? In Python the double asterisk operator ** is used to help calculate the exponent of a number raised to a power. This is done without a need to import the Python math library. For … [Read more...] about ** In Python In 2 Minutes With Code Examples

Filed Under: number

Convert Percentage String To Decimal Like “30%” To 0.3 In Python

February 10, 2022 by Ryan Sheehy

How do you convert a string representing a percentage number into an actual number that can be used to perform calculations? To convert a string represented as a percentage number into an actual decimal number in Python use the built-in float() … [Read more...] about Convert Percentage String To Decimal Like “30%” To 0.3 In Python

Filed Under: number , Python , strings

Python ++ How To Increment A Variable (Code Examples)

December 24, 2021 by Ryan Sheehy

How do you increment an integer variable in Python? Many other languages use the double plus sign operator on the variable to increment by 1, but what is Python’s plus plus operator equivalent? Python does not yet (as of version 3.9) have the ++ … [Read more...] about Python ++ How To Increment A Variable (Code Examples)

Filed Under: number , Python

  • Go to page 1
  • Go to page 2
  • Go to Next Page »

Primary Sidebar

Hello! My name is Ryan Sheehy the author of ScriptEverything.com

This website acts as a second brain of sorts for all the hacks and explorations I find when trying to solve problems at work.

About Me

Footer

Spreadsheets

I have been using spreadsheets since as early as 1996 and I continue to use this great productivity tool on a daily basis.

Check out some of my most recent discoveries about spreadsheets.

Python Code

I have been using Python since the late 1990’s due to the limitations of Excel’s VBA. I enjoy being able to wrangle and fetch data externally using Python.

Discover more of what I’ve found with Python.

Apps

Sometimes I play, hack and tinker with other applications to scratch an itch.

To find out the latest hack check out my blog feed.

Copyright © 2023 ScriptEverything.com

  • Contact
  • Privacy Policy