Answer the question
In order to leave comments, you need to log in
Can I have examples of Python scripts without object-oriented programming?
Hello!!!
Please, you can give me your / others programs written in Python (preferably at least version 3.1) without the use of object-oriented programming. I just started to study - I am familiar with the syntax, the work of functions, conditions, cycles, operations on files. But before studying object-oriented programming, I really want to get acquainted with sample programs without using this wonderful paradigm.
Thanks in advance to all who respond!!!
Answer the question
In order to leave comments, you need to log in
Wikipedia: Functional programming in Python
Habrahabr: Abnormal functional programming in python
def say_hello():
print("Hello!")
if __name__ == "__main__":
say_hello()
Python without OOP? Well, of course it is possible, but why? It's all about Python.
If, for example, calling the uppper() function on a string is considered OOP for you in the context of this question, then I can’t answer you.
And if this is not considered OOP, then look at the problem book at www.checkio.org and look at other people's solutions in the initial problems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question