Computer Science, asked by Anonymous, 9 months ago

Write about Python, Explain about coding. Give a example of coding in Python coding.

Explain about Python and How to code everything in Python language.

Give me examples form Basic and also explain about the important parts to code a sum.

50 POINTS :-)​

Answers

Answered by Equestriadash
18

Python Programming is a computer language, that can help carry out tasks/execute programs. It was introduced by Guido van Rossum in the year 1991, in the Netherlands.

As to why such a name, it was named after the animated series 'Monty Python's Flying Circus'.

Python is an easier programming language when it comes to understanding the codes and writing programs. They've a well-defined structure, that enables users to understand clearly.

The many features of this program include it being a simple language, open-source program and an object-oriented high-level programming language.

It is mostly used for creating websites, games, business apps, software, GUI [Graphical User Interface] apps and so on. Some programs that use Python include the widely used Google search engine, Uber, Quora, Spotify, YouTube, etc.

Python has two modes, Script and Shell.

  • Shell is for immediate use, for testing out commands.

  • Script is used for saving programs and executing them later on.

This is an example of a basic program:

\tt n ame\ =\ inp ut("Enter\ your\ n ame: ")\\\\print("Hello",\ n ame,\ "and\ welcome\ to\ Python\ Programming!")

Output:

\tt Enter\ your\ n ame: Vanessa

\tt Hello\ Vanessa\ and\ welcome\ to\ Python\ Programming!

The input function enables the user to give the required information asked for, once the program is executed.

The print function displays, or in Python terms, prints the information given in brackets.

This is another example of a Python program.

l = int(input("Enter the length: "))

b = int(input("Enter the breadth: "))

print(l*b, "is the area of the rectangle.")

This can also be done by adding a separate variable for the area.

l = int(input("Enter the length: "))

b = int(input("Enter the breadth: "))

area = l*b

print(area, "is the area of the rectangle.")

Both codes work the same.

The int function enables the user to input an integer value, and once that's done, it can perform numeric operations in the coming steps.

If you don't include the int function, when it reaches the step to calculate the area, it will show an error, as input functions aren't for calculations.

This is a program to find the sum of two numbers.

x = int(input("Enter a number: "))

y = int(input("Enter a second number: "))

print(x + y, "is their sum.")

Note that this program is to be typed in Script mode, saved and then executed.


Equestriadash: Thanks for the Brainliest!
Answered by Anonymous
3

Answer:

Python is a general-purpose coding language—which means that, unlike HTML, CSS, and JavaScript, it can be used for other types of programming and software development besides web development. That includes back end development, software development, data science and writing system scripts among other things.

Explanation:

hope it helped you friend please mark me as brainliest and follow me I need more thanks please

Similar questions