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
85 views
0
Please tell me how to approach the list from the back to the front

array = [0,10,20,40]I'd like to approach from the back in order of 40->20->10->0.In C++,for (i = array.length() - 1 ;i >= 0; i--)We wrote it togetherWhile writing fori in list on Python,Is...

2 years ago

1 answers
16 views
0
Ask Python about contextually changing values!

The explanation may be confusing because of the complicated content, but I would appreciate your understandingThe 'value that changes according to the situation' that I want to ask is For example, x y...

2 years ago

1 answers
116 views
0
python - to dynamically generate variables using repetitive statements

Python - Dynamically generate variables using repetitive statements I'm a self-taught Python student I want to make a multiplication gameIf you print out a question for one minute, you will write down...

2 years ago

1 answers
38 views
0
Questions about Python 3 No.Pi matrix index manipulation

num = generated_images.shape[0] # Number of images created width = int(math.sqrt(num)) height = int(math.ceil(float(num)/width)) shape = generated_images.shape[2:] image = np.zeros((height * shape[0],...

2 years ago

1 answers
40 views
0
Questions about python algorithms.

https://www.hackerrank.com/challenges/python-mutations/problemThis is the question.The answer is def mutate_string(string, position, character): return string[:position] + character + string[position ...

2 years ago

1 answers
44 views
0
Can we make a simple true/false logical expression with Python?

Can we make a simple true/false logical expression with Python?It came out as a assignment, but it doesn't matter what language you use, so I'm going to code it with Python that I've used a few times....

2 years ago

2 answers
14 views
0
Is there a way to make it 4 beats when changing Python binary?

For example, if you do bin (5),It's ob101, but I want to know how to make it 0101 with 4 beats.

2 years ago

1 answers
42 views
0
I can't drag the css outside??? (django)

In the garageCreate a 1.html file and style.css file in the templateI'm going to drag the css in html to the outside in style.cssWhy not?<!DOCTYPE html> Hello world/* style.css */h1 { color: or...

2 years ago

1 answers
130 views
0
(Python3) What is the difference between super() and super(A, self)?

class A: def __init__(self): print(A)class B(A): def __init__(self): super().__init__()b = B()class A: def __init__(self): print(A)class B(A): def __init__(self): super(B, self).__init__()b = B()T...

2 years ago

1 answers
16 views
0
Is there a way to write that function with a string that contains the function name?

For example,mystring = extendAnd when you want to use the extend function with this mystring = extenda = [1,2,3]myfunc = which function (a, mystring) # Now myfunc is the same role as a.extendSame as m...

2 years ago
« - 320 - »

© 2024 OneMinuteCode. All rights reserved.