P
P
Povsekakiy Ivanov2014-11-16 19:34:44
Python
Povsekakiy Ivanov, 2014-11-16 19:34:44

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

5 answer(s)
R
radioxoma, 2014-11-18
@Povsekakij

Wikipedia: Functional programming in Python
Habrahabr: Abnormal functional programming in python

K
Konstantin Dovnar, 2014-11-16
@SolidlSnake

def say_hello():
    print("Hello!")

if __name__ == "__main__":
    say_hello()

I
Ilya, 2014-11-16
@FireGM

You can just google functional programming in python.

D
Denis, 2014-11-16
@Ayahuaska

Python without OOP? Well, of course it is possible, but why? It's all about Python.

A
Alexander, 2014-11-16
@Survtur

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 question

Ask a Question

731 491 924 answers to any question