Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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
Comment

PREVIOUS NEXT
Code Example
Python :: que es una funcion en python 
Python :: Customizing scatter plot with pyplot object 
Python :: matplotlib colormap transparent white to black 
Python :: boder color in tkinter 
Python :: python open zip file 
Python :: os module 
Python :: create a date value array in python 
Python :: how to save brake lines on textarea in django 
Python :: open python not write file 
Python :: decorators in python 
Python :: Amazon price tracker in Python 
Python :: plotly facet_grid python 
Python :: column of lists pandas 
Python :: Dictionary Cache 
Python :: python getting line count 
Python :: python default value 
Python :: generate barcode using python 
Python :: Python DateTime Time Class Example 
Python :: python How do you find the middle element of a singly linked list in one pass? 
Python :: dumps function in json python 
Python :: how to get one record in django 
Python :: how to sort values in python 
Python :: how to make a new column with explode pyspark 
Python :: how to check python to see if list length is even 
Python :: Nearest neighbors imputation 
Python :: how to use pyttsx3 
Python :: python edit item in list 
Python :: iterate last day of months python 
Python :: json payload python function 
Python :: find location of max value in python list 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =