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
295 views
0
I want to solve the infinitive equation of the reciprocal sum.

I am using Google Collaboration.The sum of reciprocals of different natural numbers is 11/x_1+1/x_2+‥‥+1/x_n=1(x_1>x_2>‥‥>x_n)I would like to find out the number of sets (x_1 to x_n) for each...


1 answers
284 views
0
a method of replicating a row based on the value of a particular column in pandas

pandas.DataFrame is looking for a way to duplicate rows for the number of values in a particular column.The source code shown below replicates the rows so that they have the same number as the values ...

1 years ago

1 answers
335 views
0
How to Resolve Errors

from traillets.config.application import loggingdef AND(a,b): A = a * b return A def OR(a,b): if a == 1: if b == 1: A = 1 else: A = 0def NOT(a): if a == 1: A = 0 if a == 0: A = 1 return Adef ha(a,...

1 years ago

2 answers
342 views
0
(python) Recreation of round function algorithms. rounding off a decimal point

I'm trying to recreate the round function algorithm, but I'm not sure about the decimal range processing part.That's what we've done so far.def my_round(number, ndgits=None): if number<0: return in...

1 years ago

1 answers
405 views
0
Unable to install psutil on Python

I'm a Python beginner.After installing Python, I try to install with pip install psutil, but I get a photo-like error.The same goes for trying to install jupyter notebook or mojimoji.The Python versio...


1 answers
387 views
0
(python) Abs function re-create question

I'm studying how to make a Python function algorithm again. It's really not easy.Below is the coding that I redefined the ABS function.def my_abs(number): if number < 0: number * -1 elif number &g...

1 years ago

1 answers
272 views
0
(python)abs Function Recreate Question

I'm studying how to rebuild the Python function algorithm.It's really not easy.Below is the coding that I redefined the ABS function.def my_abs(number): if number < 0: number * -1 elif number >...

1 years ago

1 answers
297 views
0
Python Class Method Questions

class JPP: def __init__(self): # Create headless Chrome and specify download folder code self.driver = webdriver.Chrome() # options=self.options # Below is the current time-based -12 hours + 24 hou...

1 years ago

1 answers
306 views
0
How to Specify the Number of Decimal Digits When Drawing DataFrame in matplotlib

I have saved the Pandas DataFrame in the image in matplotlib by referring to the site below. I am having trouble formatting the number of decimal places.Could you tell me how to display it in two deci...

1 years ago

1 answers
289 views
0
Get maximum value in the list Coding does not work as expected

def maxFunc(t): max = 0 for i in range(10): if t >= max: max = t return maxA = [1, 2, 3, 4, 5, 6, 73, 8, 10, 54] maxNum = list(map(maxFunc, A))print(maxNum)It's a code that prints the largest v...

1 years ago
« - 25 - »

© 2024 OneMinuteCode. All rights reserved.