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
290 views
0
I want to match the legend to the tooltip display with the graph I create in Python's Bokeh.

We use Bokeh to create a graph of population trends.If you read the code below, a graph is displayed and a legend is displayed on the right.I would like to match the name of the city in the legend def...

1 years ago

1 answers
339 views
0
QR Code Creation in Python Does Not Work

I tried to create a QR code according to the site below, but it didn't work.If you know the cause, could you please let me know?https://web-lh.fromation.co.jp/archives/10000053001pip install qrcodeReq...

1 years ago

1 answers
431 views
0
Do I need to rebuild the python environment with Ubuntu in Windows 10?

I used to run python on Windows 10, but in order to use deepspeed, I put Ubuntu in the Ubuntu environment.Of course, the python command doesn't work. Do we need to build it from scratch again?Can I co...

1 years ago

1 answers
218 views
0
I wrote the code to make sure that 0.1 plus 10 times doesn't get 1, but it doesn't work.

a=0for i in range(10):a+=0.1aI wrote the code to make sure that 0.1 is added 10 times but it doesn't work.What's wrong?EditI'm sorry I didn't know the function of editing.I don't know what to write ev...

1 years ago

1 answers
223 views
0
Error in Python: IndentationError: unindent does not match any outer indication level

There is an error in the initialization part of DB, but I don't know why it is.This situation cannot be solved even after many revisions and rewrites.Please tell me the cause and solution.def__init__(...

1 years ago

1 answers
532 views
0
I want to change the format (date and time display) of the legend in chronological order.

We generated a line graph by performing the following:If you want the time in the legend to format YYYY-MM-DD (date only, no time), where should I fix it?for i in range(0,10): df04.plot(figsize=(8,6))...

1 years ago

1 answers
394 views
0
[python3] Receive Lv.1 report results / Solve problems with approaches and dictionary values

def solution(id_list, report, k): answer = [] Declareddic = {} n = len(id_list) #total number of users for x in id_list: Report dic[x] = [] for i in report: reporter = i.split() #[muzi, frodo] Repor...

1 years ago

1 answers
229 views
0
You want to search for a string in a text file from a key in a dictionary to find the number of elements of value.

As I am a beginner, there may be some strange points, but I appreciate your cooperation.Text File Contents AAABBBCCCDDDDictionary={ US>'AAA': ['a', 'b', 'c', BBB: ['a', 'b', 'd', 'g',] 'CCC': ['b', 'f...

1 years ago

1 answers
367 views
0
TypeError of JSON error in python: the JSON object must be str, bytes or byte array

I am thinking of reading and translating PDF and writing it out in Outlook draft.(Use the https://www.cpi-japan.com/services/ PDF file of IELTS Reading Samples at the top of this site)An error occurre...

1 years ago

1 answers
495 views
0
FileNotFoundError in json: What is the difference between these two?

What's the difference between the two? You can read one, but you can't read the other.Code 2 tried to code https://github.com/graykode/ALBERT-PytorchCode 1 cuts out the part where the error occurredCo...

1 years ago
« - 11 - »

© 2024 OneMinuteCode. All rights reserved.