I am a complete beginner so please bear with me and any offers of advice and/or tips would be much appreciated!
I have a list which has been inputted by the user. The numbers are any positive and negative integers and zero. I want to include a function where they can turn all the numbers in the list into positive values. (ie The modulus or absolute value) I've been playing aroung with the 'abs' thing but it won't work. I think it's because the data is a list?
I have a list which has been inputted by the user. The numbers are any positive and negative integers and zero. I want to include a function where they can turn all the numbers in the list into positive values. (ie The modulus or absolute value) I've been playing aroung with the 'abs' thing but it won't work. I think it's because the data is a list?