Hey, I have previously programmed in C, PHP & Javascript and I have recently started out with Python but the syntax of the functions is quite different and confusing? Like if we call len(abc)
we enter the param inside the function unlike the function abc.upper()
where we use enter the param using a dot. Its kinda confusing?
itsnauman 0 Newbie Poster
mathijs 0 Light Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
itsnauman commented: yes, but why do we enter the argument using the dot. Why not inside the brackets? +0
itsnauman 0 Newbie Poster
mathijs 0 Light Poster
snippsat 661 Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.