Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Python filter_list
Author
Message
RE: Python #11
Code:
h = 5
z = int(input('Enter your number: ')) + h
print(z)
Remember to give white spaces to makes your code clean and understandable.
My Blog: http://www.procurity.wordpress.com
Donations: 1HLjiSbnWMpeQU46eUVCrYdbkrtduX7snG

Reply

RE: Python #12
Actually it is because of questions like this that I think learning statically typed languages is better for beginners than dynamic languages like Python. Python might seem easy on the surface, but how shall a beginner grasp the concept of types, when there aren't any declared? Not in functions, nor for variables. There are so many beginner questions struggeling with that.
But that's only my 2 cents.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Python #13
Dynamically typed languages tend to be more expressive, so you can say more, and say it more clearly, with less text.

The important discussions about typing systems (mostly about scalability and stability) are over projects that require large teams or several teams working for several months to be completed, or about maintainability once the original teams handed the project to maintenance.

Static typing is, among other things, a form of enforced documentation, and that is a good thing to have when you need to approach source code that nobody has changed in a while. Static typing may guide you about the rules you must know to change what you need to change, while a most systemic understanding may be required to change a program with dynamic typing.

outside source quotes quotes

Reply

RE: Python #14
-thread moved to programming section and marked as solved-

@LiveFaster: I agree with your explanation. But I still think that people who start to program with statically typed languages tend to understand the type system better, because they are forced to think about the types they use, get, return and declare.
Once you are used to types, it is very easy to grasp Python and to understand such errors as above.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Python #15
crystal clear Deque

Spoiler: Meh
^_^

Reply

RE: Python #16
crystal clear Deque

Spoiler: Meh
^_^

Reply







Users browsing this thread: 1 Guest(s)