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
14 views
0
I want to express the decimal discriminant function using the list abbreviation expression.

Hello, I'm a student who is learning.We studied the decimal discrimination function as follows.A decimal number between 10 and 50 was printed.defis_prime(n): # decimal discrimination function if n == ...

2 years ago

1 answers
40 views
0
I want to compare the items in the same index from the two lists and output only the common elements.

I want to input two lists and compare each list at the end and print out only the common item '0', what should I do? For example, when you enter it in the shell window,Enter cammate 1's Monday timetab...

2 years ago

1 answers
93 views
0
[Python Beginner] Question why the results depend on the difference in the empty dictionary declaration position (in or out) in the for statement

Hello, I'm a beginner at Python.I want to create a dictionary that increases sequentially with a for statement and add it to one list It depends on the difference in the position of the empty dictiona...

2 years ago

1 answers
120 views
0
Python Beginner - IndexError: list index out of range error in beautiful soup

If you run the following during web-scaping practice, you will get an error with IndexError: list index out of range.Why?import requestsimport refrom bs4 import BeautifulSoupurl = https://www.coupang....

2 years ago

1 answers
72 views
0
Get the number of Python drives

As a beginner at Python, I have a question.How do I get the number of drives on that computer in Python?For example, some computers have drive C only, and some computers may have drive D or E. Is ther...

2 years ago

1 answers
52 views
0
I use Python selenium to crawl and get it in HTML, but I don't scratch the whole thing, I scratch the half.

from selenium import webdriverfrom bs4 import BeautifulSoupdriver = webdriver.Chrome('./chromedriver')driver.get('http://see.knu.ac.kr/content/board/notice.html')html = driver.page_sourcesoup = Beauti...


1 answers
14 views
0
I'm making a discode bot with Python, but there's an error. Help me

Run in cmd.If you py, it will be executed to some extent The above exception was the direct cause of the following exception:Traceback (most recent call last): File C:\Users\owner\Desktop\run.py, line...

2 years ago

1 answers
61 views
0
Python map function question..

I learned in Python that the map function is saved as a list.If so, I want to print out elements from the list created by the map function, but I get an error.Is there any other way I don't know?num, ...

2 years ago

1 answers
41 views
0
Python two-dimensional list, putting 5050 data into a triangle shape

If list1 has 5050 data from 1 to 5050, I'd like to convert it into a two-dimensional list.Put 1 in (0,0) and (1,0) = 2, (1,1) = 2, (2,0) = 4, (2,1) = 5

2 years ago

3 answers
13 views
0
Python-like code, what's the difference?

While looking for how to reduce the Python code array, I saw the following example:arr = [1, 2, 3, 4]# Not like Pythonresult = []for i in range(len(arr)): if arr[i] % 2 == 1: result.append(arr[i])# P...

2 years ago
« - 395 - »

© 2024 OneMinuteCode. All rights reserved.