Checking the dimensions of luggage – a program that checks the size of luggage. Guidelines:
Define a function that: - gets data as a string parameter in a format like: 13x34x54 - creates a list with 3 numbers as a dimensions: [width, height, depth] - calculates and returns a size of luggage
Define a main function that: - enters dimensions of luggage in a format like: 13x34x54 - checks whether the size of luggage is bigger then 158 cm.
Comments
Leave a comment