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
65 views
0
Print out all beginner repeat cards

Hello, I'm a student who just learned coding.I have to print out the results below, but it's not as easy as I thought.symbol_list = ['Spade','Heart','Diamond','Clover']for i in range(1,53): for j in s...

2 years ago

2 answers
109 views
0
Are multiprocessing and ProcessPoolExecutor the same?

In order to reduce work time, I'm trying to run two or more functions simultaneously using multiprocessing, and I found that if I want to add or exclude a list in the middle of the function, I can sha...

2 years ago

2 answers
12 views
0
Question about Python embedding function all() with respect to logical operators.

Hello, I'm Corinne.The above all() function is a function that returns True if it is of an optional type, such as a list or dictionary.I'm asking you because I don't know what the conditions for retur...

2 years ago

1 answers
16 views
0
I'm a student who's starting Python, and I'm asking you a question.

def std_weight(height, gender) : if gender == 1 : weight = height * height * 22 print(A man of height {0} has a standard weight of {1}.format(height, float(round(weight,2)))) elif gender == 2 : wei...

2 years ago

1 answers
44 views
0
To simplify functions of the same pattern defined by button_1_callback, ..., buttono_8_callback

Is there any way to reduce the coding using the list function in the coding below?If it is not, or inefficient, could you tell me how to use another function?import RPi.Bringing up GPIO as GPIO #GPIO ...

2 years ago

1 answers
13 views
0
Please help me set the Python image capture coordinates.

import win32guiimport win32uifrom ctypes import windllfrom PIL import Imagehwnd = win32gui.FindWindow (None, 'New Text Document(4).txt - Notepad')# # Change the line below depending on whether you wan...

2 years ago

2 answers
80 views
0
Python : I have a question about creating (writing) multiple csv files.

for i in df_1.columns[11:]: new_file = df_water[i] c_file = pd.concat([date_file, new_file], axis=1) for file in name_file: file_path = os.path.join(save_directory, file) c_file.to_csv(file_path)T...

2 years ago

1 answers
49 views
0
Python Default Error

try: print(This is a single-digit calculator.) num1 = int (input (Enter the first digit :) num2 = int (input (Enter the second digit :) print({0} / {1} = {2}.format(num1, num2, int(num1/num2)))except ...

2 years ago

1 answers
46 views
0
Python Error

starbucks=Iron Man, Thor, I am Groot]for customer in starbucks: print ({0}, coffee is ready.)format(customer))I think I used this for correctly, but it doesn't work.SyntaxError: invalid syntax appears...

2 years ago

1 answers
70 views
0
Questions about Python Recursive Functions

Recently, I am studying algorithms using Python in letcode. I am studying the code to perform permutation as shown below, but there is something I don't understand in the middle. from typing import Li...

2 years ago
« - 396 - »

© 2024 OneMinuteCode. All rights reserved.