What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-10 09:44:03
how to give multiple option to the user and ask the same question again and again until the user tells one of the options
while True: data = input("Please enter a loud message (must be all caps): ") if not data.isupper(): print("Sorry, your response was not loud enough.") continue else: #we're happy with the value given... Add solution -
Python 2021-09-10 07:28:01
finding all vowels in a string python
def find_all_vowels(Word: str): if Word == None or Word == "": raise Exception("The arguments 'Word' is None or empty") vowles_in_Word = [] Word = Word.upper() Vowles_list = ["A","E","I&... Add solution -
Python 2021-09-03 13:30:01
python roll dice 100 times graph results
import numpy as np import random import matplotlib.pyplot as plt def die_roll(rollnum, maxdots=6, ausgabe=""): all_rolls = np.random.randint(1, maxdots+1, size=rollnum) if "T" in ausgabe.upper(): i = 1 ... Add solution -
TypeScript 2021-09-01 09:55:01
convert all size units to terabytes in python
def convertFloatToDecimal(f=0.0, precision=2): ''' Convert a float to string of decimal. precision: by default 2. If no arg provided, return "0.00". ''' return ("%." + str(precision) + "f") % f def fo... Add solution
Best helpers
Ranking is empty