Why is upper structured differently from str


#1

Why is the structure of upper and str different e.g.

var = fish
var.upper()
str(var)

I find it hard to remember which style to use so would like to understand what governs whether the function comes before or after the variable.


#2

i would love to explain this, but it involves you know about classes and function.

So for now, you will just docs for the syntax


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.