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
115 views
0
How to INSERT and UPDATE many rows in python pyodbc?

Regardless of the database in pspark or python (I would like you to let me know around mssql and postgreSQL), you need to insert or update coding for each row.However, Spark does not support update, s...

2 years ago

1 answers
51 views
0
I have a question regarding the data type.

Hello, everyone I'm a beginner at coding.I'm getting data from the website Part of the data is contained in non-numeric characters.For example, all other data are float types, such as 2.4 and 12.7, bu...

2 years ago

1 answers
18 views
0
How to receive multiple Python beginners and process them

As shown in the picture, use the parameter as a variable factor in the function. When you receive input.split so that you can receive multiple inputs. If you print it out, it comes out divided. I don'...

2 years ago

2 answers
112 views
0
Draw a graph of gravity according to altitude with matplotlib

N = 80z = np.zeros((N,2))for h in range(0,80,1): z[h,0] = h #constants mass_earth = 5.9722*10**(24) #[kg] radius_earth = 6371*10**(3) #[m] universal_gravitational_const = 6.674*10**(-11) #[m^3/kg^-1*s...

2 years ago


2 answers
74 views
0
I have a question about the classification prediction code. TypeError: only size-1 arrays can be converted to Python scalars

After learning and storing the classification model, you want to apply new data to the model.I brought new data and completed the padding step, but I don't know how to apply multiple lists at once, so...


2 answers
106 views
0
I'd like to ask you how to load a file with Python replace.

Sorry for the basic question.In the Python text cleaning process, change the contents one by one as shown below df['sentence'] = df[sentence].str.replace (ballpoint pen, pen)df['sentence'] = df[senten...

2 years ago

1 answers
79 views
0
I made a calculator using Python tkinter, but an error appears. 'NoneType' object has no attribute 'configure'

I'm sorry to attach the picture.I made a calculator using tkinterRun and enter a value.AttributeError: 'NoneType' object has no attribute 'configure'An error appears. I think there is a problem with ....

2 years ago

2 answers
112 views
0
I want to use Python instance as a variable in the method.

If you answer my question, I will never forget this kindness.My question is, to sum up,I want to use the instance as a variable in the method.For example, class Marine: def __init__(self): self.healt...


1 answers
43 views
0
Python bigO question

def solution(number, k): num_s = str(number) answer = '' if k == 0: return number list1 = [] list_a = [] list_temp = [] for i in range(len(str(number))): list1.append(int(num_s[i])) num1 = len(list1...

2 years ago
« - 400 - »

© 2024 OneMinuteCode. All rights reserved.