Update calc.py

This commit is contained in:
Suchitainf 2020-10-14 15:24:18 +05:30 committed by GitHub
parent c57f5afc7d
commit 001bc9d8ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ The 'calc' library contains the 'add2' function that takes 2 values and adds
them together. If either value is a string (or both of them are) 'add2' ensures them together. If either value is a string (or both of them are) 'add2' ensures
they are both strings, thereby resulting in a concatenated result. they are both strings, thereby resulting in a concatenated result.
NOTE: If a value submitted to the 'add2' function is a float, it must be done so NOTE: If a value submitted to the 'add2' function is a float, it must be done so
in quotes (i.e. as a string). in quotes (i.e. as a string). update
''' '''
# If 'value' is not an integer, convert it to a float and failing that, a string. # If 'value' is not an integer, convert it to a float and failing that, a string.