I want to write a function that uses a given argument inside the same function in two ways:
- as a string
- as a object, int or float, etc.
the structure should be like this:
def func(any_given_argument):
print('the "any_given_argument" value is:', any_given_argument)
Examples of desired result:
func(2) = 'the 2 value is:' 2
func(df['col1']) = "the value of df['col'] is:" value of df['col1'] series
func(2+4) = 'the value of 2+4 is:' 6
Need some help doing this because I've tried a lot but didn't succeed... thanks a lot in advance!!