How many ways python program can be written
Answers
Answered by
6
Answer:
You can run python programs in two ways, first by typing commands directly in python shell or run program stored in a file. But most of the time you want to run programs stored in a file.
Explanation:
Answered by
1
There is more than one way to write a program in Python.
Explanation:
- One of the important things to know is that there is often more than one way to do something in programming.
- Programmers have a variety of methods for accomplishing a task.
- Python, for example, offers several different ways to write programs.
- Python has many different types of variables, and functions often can take multiple parameters.
- We can also use the Python language with a number of different approaches.
- For example, we can write a program using a module, a script, or even a class.
- Python has both an object-oriented and a functional style.
- Object-oriented programming involves creating a class for a particular way of doing something.
- It is often seen in the C programming language and is used to create programs in other languages.
- Python uses a procedural style of programming which does not usually involve using objects.
Similar questions
Math,
6 months ago
Political Science,
6 months ago
Social Sciences,
6 months ago
English,
11 months ago
Geography,
1 year ago