Dec-02-2017, 04:06 AM
With 'if' statements i can get to work.. the book I'm reading want me to use 'if','elif' and 'else' chain and thats where i run into problems. Thanks again
ord_nums = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] if ord_nums < '2': print str(ord_nums[0]) + 'st' if ord_nums < '3': print str(ord_nums[1]) + 'nd' if ord_nums < '4': print str(ord_nums[2]) + 'rd' if ord_nums < '5': print str(ord_nums[3]) + 'th' if ord_nums < '6': print str(ord_nums[4]) + 'th'