python tag

Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.

Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. It is often described as a "batteries included" language due to its comprehensive standard library.

Guido van Rossum began working on Python in the late 1980s as a successor to the ABC programming language and first released it in 1991 as Python 0.9.0. Python 2.0 was released in 2000 and introduced new features such as list comprehensions, cycle-detecting garbage collection, reference counting, and Unicode support. Python 3.0, released in 2008, was a major revision that is not completely backward-compatible with earlier versions. Python 2 was discontinued with version 2.7.18 in 2020.

Python consistently ranks as one of the most popular programming languages. It is used by many organizations and companies. Pixar, Disney, Instagram and the developers of the Linux Kernel are among many of it's high-profile users, which includes many developers of Free and Open source software.

Reference: WIKIPEDIA

4650 questions


1 answers
20 views
0
I don't know why Python code is causing errors.

I'm a beginner on the second day for the first time.I'm trying to copy it, but I don't know why there was an error, so please let me know if you don't mind.n=int(Enter temperature:)if n>=35: print ...

2 years ago

2 answers
18 views
0
I want to get the absolute path of the brother directory in the directory where the executable is located.

If you are running a script in the folder a, I would like to get the absolute path of c.py in the folder b in the same hierarchy as a in that script.For example, a and b are in the same folder named d...

2 years ago

1 answers
18 views
0
How to Write Python Class

Let me ask you a question about how to write python class.I created a class (defined two methods) because I wanted to aggregate the customer's purchase price and rank it based on that amount.Method 1 ...

2 years ago

1 answers
73 views
0
When I do plt.figure in PySimpleGUI, the window shrinks.

If I create a figure object with matplotlib.pyplot while using PySimpleGUI, the window size of the application created with PySimpleGUI will be fixedly reduced. Is there any way to avoid this?Run Envi...

2 years ago

1 answers
20 views
0
Loading Python Files

The code below is a program that reads the specified text file (ave.txt) and produces the average temperature.Current State Code: path=ave.txtsum = 0.0a = 0with open(path, r) as f: For lin f: l = l. ...

2 years ago

2 answers
86 views
0
Listing gcc error messages in python

How do I put gcc error messages in a row-by-row list?I want to use the gcc command file from the command line argument.#coding:UTF-8import subprocessimport sysargs=sys.argvlines = [ ]proc=subprocess.P...

2 years ago

1 answers
78 views
0
Error while running web scraping

I have tried web scraping for the first time by referring to the site below.http://blog.aidemy.net/entry/2017/12/17/214715The following error occurred when I tried and obtained only API_KEY and CUSTOM...

2 years ago

2 answers
16 views
0
I want to extract characters from the message and save them in json.

msg=Dictionary registration: Doraemon_Crayon Shin-chanNow, { Doraemon: Shin-chan Crayon.}In other words, I would like to remove Dictionary Registration from the body of the message and save only Dorae...

2 years ago

2 answers
64 views
0
Error when attempting to move selenium using headlesschrome on lambda

It's multi-post.https://teratail.com/questions/375966I also asked for answers on teratail, but I will also post it here as it does not seem to solve the problem.I'd like to use headlesschrome on lambd...

2 years ago

3 answers
22 views
0
a method of substituting values for similar variables

I'd like to define 6 lines of a1, a2, a3, b1, b2, b3 shorter for the following code. Is there a good way to use .format(), but it didn't work.a1=1a2 = 2a3 = 3b1 = a1**2b2 = a2**2b3 = a3**2

2 years ago
« - 162 - »

© 2024 OneMinuteCode. All rights reserved.