
(The example above shows what this should look like. The dashes should run along the entire length of each problem individually. There should be dashes at the bottom of each problem. There should be four spaces between each problem. There should be a single space between the operator and the longest of the two operands, the operator will be on the same line as the second operand, both operands will be in the same order as provided (the first will be the top one and the second will be the bottom. If the user supplied the correct format of problems, the conversion you return will follow these rules: Otherwise, the error string returned will be: Error: Numbers cannot be more than four digits. While those of you who seek a bolder decision will totally like this matte combo of black and grey. Grey and pink nails will suit those of you who like to keep their nails look gentle and sweet. That is why adding to your grey nails matte top coat is what you need to look both neutral and elegant. Otherwise, the function will return: Error: Numbers must only contain digits.Įach operand (aka number on each side of the operator) has a max of four digits in width. Matte nails have been trending for a while now. The error returned will be: Error: Operator must be '+' or '-'.Įach number (operand) should only contain digits.

Other operators not mentioned in this bullet point will not need to be tested. Multiplication and division will return an error. The appropriate operators the function will accept are addition and subtraction. The limit is five, anything more will return: Error: Too many problems. If there are too many problems supplied to the function. The function will return the correct conversion if the supplied problems are properly formatted, otherwise, it will return a string that describes an error that is meaningful to the user. When the second argument is set to True, the answers should be displayed.Īrithmetic_arranger()Īrithmetic_arranger(, True) Color often distracts the less experienced. Without color, that is, using just variations of black and white, it is easier to see and focus on value. Because you can remove nail polish whenever you want a change, don’t limit yourself and choose a color that will make you feel good. The gray scale (or value scale) is most often comprised of five to ten sections of even, gradual gradations of gray, progressing from white (value 1) to black (value 10, in a ten section scale).


You can choose solids with a matte or glossy finish, shimmering sparkles, or glitter, and any number of other products. The function should optionally take a second argument. Your choices are unlimited when it comes to your nail color. For example, "235 + 52" becomes:Ĭreate a function that receives a list of strings that are arithmetic problems and returns the problems arranged vertically and side-by-side. Students in primary school often arrange arithmetic problems vertically to make them easier to solve.
