What do you want to save?
Add Code snippet
New code examples
-
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 -
-
Python 2021-11-02 13:42:13
playfair cipher program in python
key=input("Enter key") key=key.replace(" ", "") key=key.upper() def matrix(x,y,initial): return [[initial for i in range(x)] for j in range(y)] result=list() for c in key: #storing key if c not in result: ... Add solution -
Python 2021-10-31 01:35:10
capitalize python
# Python string capitalization string = "this isn't a #Standard Sntence." string.capitalize() # "This isn't a #standard sentence." string.upper() # "THIS ISN'T A #STANDARD SENTENCE." string.lower() # "this isn't a #stand... Add solution -
C 2021-10-28 13:22:06
to upper in c
For those of you who want to uppercase a string and store it in a variable (that was what I was looking for when I read these answers). #include <stdio.h> //<-- You need this to use printf. #include <string.h> //<-- You need this to u... Add solution
Best helpers
Ranking is empty