A string has different types of elements such as strings, integers, and floats. I have to change certain elements but not others. String changes to all lower case, and integers change to negative. Floats stay the same.
I've tried a few things and they haven't worked at all. This code isn't even close but I figured I show something.
newint = []
for i in input:
if type(i) in input == str:
i.lower()
return i
elif type(i) in input == int:
newint = i * -1
return i
if input = ["Hello", 33, 3.14, "Joe", -2] at the beginning,
then at the end input=["hello", -33, 3.14, "joe", 2]