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
125 views
0
Output using split

When outputting a string with the split function as 1,2,3,4,5 Day = 1This = 23 = 3 G = 4 Oh = 5What should I do if I want to print it out like this

2 years ago

1 answers
13 views
0
Please fix the Python unpack error... I beg you.

#-*- coding: utf-8-*-from winreg import *from os.path import basenameimport re, structnet = SYSTEM\\CurrentControlSet\\Control\\Session Manager\\AppCompatCachereg = ConnectRegistry(None,HKEY_LOCAL_MAC...

2 years ago

1 answers
18 views
0
Python The truth value of a Series is enormous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

I'm comparing data frames with Python if not ((df['on']) == (driver.found_elements_by_class_name('bg_wrap')[0]): print (Run)If you compare selenium and dataframe, The truth value of a Series is ambig...

2 years ago

1 answers
15 views
0
How to get Minimum

Assuming that you do not know the number of alist elements when you need to obtain the minimum value of the following alist and print it out. alist = [3, 76, 44, 24, 5, 38, 64, 21, 1, 5, 7, 9]I'm a be...

2 years ago

1 answers
14 views
0
Python Input Related

s = list(map(str, input().split()))Department s = list(input().split())I wonder what the difference is in the process of receiving these two inputs

2 years ago

1 answers
14 views
0
Column alignment using Python argsort

You want to find the sort index of the second row of the matrix as argsort and then sort all the columns by row.import numpy as npa = np.array([[22, 3, 6, 9, 12, 15], [4, 2, 1, 6, 8, 3], [3, 53, 1...

2 years ago

1 answers
18 views
0
To accept Python inputs and truncate strings

How do I calculate the number of floors by receiving the number of floors when writing this code?(Crying)

2 years ago

1 answers
65 views
0
This is a question about using Python decision tree dropna() Masters, welcome!

When building a decision tree in Python, we need to get weighted_memory. In the process, I don't understand the code to get the entropy value, so I'm asking you a question. Weighted_Entropy = np.sum([...

2 years ago

1 answers
18 views
0
Python Repeat Question. It's a bit confusing

Hi, everyone. I have a question about the following Python code.What I'm going to ask is a question about code with this structure in Python repeata = [i for i in features if i != alphabet]In the repe...

2 years ago

2 answers
69 views
0
To express Matlab 3D matrix in Python

# Matlab f = zeros(984,17,10); # (x,y,z) a = squeeze(f(1,:,:)); >> size(a) is (17,10) # Python f = np.zeros((10, 984, 17)); #(z,x,y) a = np.squeze(f[:,1,:]); >> a.shape is (10,17) As we tr...

2 years ago
« - 386 - »

© 2024 OneMinuteCode. All rights reserved.