What do you want to save?
Add Code snippet
New code examples
-
-
Python 2021-11-12 03:17:09
how to make a calculator using idle
def calculate(): operation = input(''' Please type in the math operation you would like to complete: + for addition - for subtraction * for multiplication / for division ''') number_1 = int(input('Please enter the first number: ')) number_2 =... Add solution -
Python 2021-11-09 11:05:16
Fill in the gaps in the initials function so that it returns the initials of the words contained in the phrase received, in upper case.
def get_initials(fullname): xs = (fullname) name_list = xs.split() initials = "" for name in name_list: # go through each name initials += name[0].upper() # append the initial return initials Add solution -
Python 2021-11-08 03:32:16
basic python hangman game
import random, time fruits = ['pear', 'mango', 'apple', 'banana', 'apricot', 'pineapple','cantaloupe', 'grapefruit','jackfruit','papaya'] superHeroes = ['hawkeye', 'robin', 'Galactus', 'thor', 'mystique', 'superman', 'deadpool', 'vision', 'sandman', 'aqua... Add solution -
Best helpers
Ranking is empty