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


2 answers
12 views
0
Python multiprocessing? I want to know how the code works.

import timeimport multiprocessing as mpimport wxdef myWorker(a, b): time.sleep(3) print('{} * {} = = {}'.format(a, b, a*b))def onProcess(event): jobs = mp.cpu_count() * 2 a = 5 b = 10 for job in range...

2 years ago

1 answers
129 views
0
I'd like to sort out the list that stores sequence types

data1 = [[1,2,3], [4,5,6], [7,8,9]]data2 = [(1,2,3), (4,5,6), (7,8,9)]I'm saving lists and tuples as list elementsYou want to sort by the second item (2,5,8) in each element.In Python 3.5, the first e...

2 years ago

1 answers
48 views
0
I'm practicing the item calculation code.

Here's the condition.(The price of the item is given in advance.)So the code I wrote now is ## Current amountpres_money=5000 ## the price of goodsgoods_price = {'apple':1500, 'egg':2000, 'mackerel':33...

2 years ago

2 answers
34 views
0
If the file name is not 7 alphanumeric characters, then the entire file name is printed

Currently speaking Python language and having difficulty implementing code.For example, in the G:\new folder path, files with formats such as '181001161609_00001_1AE_AAAABAA.bmp', 181101161609_00001_1...

2 years ago

1 answers
141 views
0
I have a question regarding Python's open function.

1. Is the open function and the open method of the io module the same? Or are they similar functions but separate functions?2. When opening a file with an open function and reading the contents of the...

2 years ago

1 answers
13 views
0
I have a question for Python def.

Hello, I am a student who has been learning Python for about a month.We are making a program that calculates the sensory temperature by receiving the temperature and wind elements.I'm going to use the...

2 years ago

1 answers
12 views
0
Questions about Python. (Compress strings)

I was studying while reading booksI've been trying to fix the code here and there, but it doesn't workI don't knowPlease help me, masters.Displays the number of iterations when a string is entered and...

2 years ago

1 answers
15 views
0
Python Introductory Questions

for place in val: for words in place: ```The overlapping list eg.ist = [Seoul], [Daegu], and [Busan] are extracted and converted into strings like Seoul, Daegu, and Busan. I can't think of how to clo...

2 years ago

1 answers
13 views
0
I have a question for Python beginners

>>>li=[1,2,3,4,5,6,7]>>>li[1:4][2,3,4]>>>li[::2][1,3,5,7]I'm learning the listI can roughly guess that [1:4] is from 1 to 4. All of a sudden [::2] came out... I don't know w...

2 years ago

1 answers
91 views
0
Calling the dll file to Python Ctypes/Live Beginners

My friend wrote a calculation program in C language (not a calculator program) I want to decorate the graphic UI with C and Python.First of all, I converted my friend's C file into a .dll file. I know...

2 years ago
« - 290 - »

© 2024 OneMinuteCode. All rights reserved.