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
17 views
0
How to change Python default

I'm using Python with VScode, but I can't import the package.import pand as pdTraceback (most recent call last): File <stdin>, line 1, in <module> ModuleNotFoundError: No module named 'pa...

2 years ago

3 answers
16 views
0
When the Python module is not called,

Modules or packages are not imported from Python.It says that the pip installation and module installation were all successfulIf I import it to write it in VScode, it says there is no module.I even ad...

2 years ago

1 answers
80 views
0
Which method do you prefer when updating dict?

When updating and adding elements of a dict object, I don't know how to do it neatly.I understand that the following 2 methods are possible, which of the two do you prefer?There may be factors that af...

2 years ago

1 answers
129 views
0
Python Integer Byte Code Conversion Question

import structtest_struct = struct.pack('B', 34)print(test_tmp : , test_struct)test_bytes = bytes([34])print(test convert bytes : , test_bytes)>>>test_tmp : b''test convert bytes : b''When the...

2 years ago

1 answers
155 views
0
If you open the [utf-8] file and write or append and save it, it will be recognized as an [ascii] file.

If you open the [utf-8] file, replace it, and save it (w,a), it recognizes it as an [ascii] file. How do I save it so that it is recognized as utf-8 and not changed to be recognized as ascii?This file...

2 years ago

1 answers
18 views
0
Python TypeError: 'float' object is not writable

Hello.Using Python, we are writing a code to obtain the slope of the neural network loss function.Here's the code.def num_grad(self, f, key): h = 0.001 W = self.params[key] result = [[0 for j in ra...

2 years ago

1 answers
124 views
0
Only the middle of the star is not painted in Python Turtle.

Hello, I'm a college student taking Python as a seasonal semester. We're drawing a star with a turtleneck inside the river, but it doesn't paint in the middle of the star. How do I fix the code? I'd r...

2 years ago

1 answers
45 views
0
I would like to ask you about the Python sequence list element modification.

We're working on a simple code that represents the DNA sequence in Python. Code that stores the base sequence in the list when it is entered, transforms the list element according to the rule with a f...

2 years ago

1 answers
155 views
0
Error related to networkx: ValueError: Received invalid argument(s): size

import pandas as pddf =pd.read_csv(C:\\python37\\practice\\textmining\\ccccg\\xxx.csv, encoding='cp949')galexy_posts=df.get('song')print(galexy_posts[0:10])from eunjeon import Mecabtagger = Mecab()gal...


1 answers
18 views
0
Add Python items and show them? What should I do?

There are 6 Keyword items.

2 years ago
« - 441 - »

© 2024 OneMinuteCode. All rights reserved.