Skip to content

rkohanyi/vegetables-string-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vegetables String Format Exercise

The goal of this exercise is to write a function that takes the following input

[
    ['alma', 100],
    ['répa', 40],
    ['vöröshagyma', 210],
    ['káposzta', 300],
    ['sárgabarack', 232132],
    ['szőlő', 500],
    ['paprika', 20],
    ['karalábé', 710],
    ['őszibarack', 42],
    ['szilva', 10],
    ['jégsaláta', 1420],
]

and outputs the following to the terminal

#################################
# 1.  #    alma     #    100 Ft #
# 2.  #    répa     #     40 Ft #
# 3.  # vöröshagyma #    210 Ft #
# 4.  #  káposzta   #    300 Ft #
# 5.  # sárgabarack # 232132 Ft #
# 6.  #    szőlő    #    500 Ft #
# 7.  #   paprika   #     20 Ft #
# 8.  #  karalábé   #    710 Ft #
# 9.  # őszibarack  #     42 Ft #
# 10. #   szilva    #     10 Ft #
# 11. #  jégsaláta  #   1420 Ft #
#################################

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages