May-14-2017, 08:59 PM
Thanks everybody!
Your answers helped allot.
I'm just still a bit confused. In earlier lines of code I used the same type of code as described above and it would execute without any error:
Your answers helped allot.
I'm just still a bit confused. In earlier lines of code I used the same type of code as described above and it would execute without any error:
message = "\nMy favorite machine is the " print(message + farm_equipment[0].upper())The result:
Output:My favorite machine is the JD R4038
Is this because I'm specifying an element from the list, which is a string and is thus allowed?