Skip to content

EN_Examples

VB PROGER edited this page Apr 18, 2023 · 3 revisions

Examples

Here are some examples. You can start with them.

Print all alphabet letters

import pypink
alphabet = pypink.alphabet('en') # Get list of letters
print(''.join(alphabet)) # Print all letters!

Print capitalized words from list

import pypink
my_list = ['new-york', 'dubai', 'berlin', 'madrid', 'tokyo', 'paris', 'italy', 'spain', 'france']
for item in my_list: # Iterate the list
    print(pypink.capitalize(item)) # Prink capitalized string