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
73 views
0
Using the Server API with Pyhon

I am trying to use the API with Conoha, which provides the server, but it has failed.What I want to do is add servers using API.https://www.conoha.jp/docs/compute-create_vm.htmlThe user token and imag...

2 years ago

2 answers
39 views
0
How to use python3 for-zip and how to store values in objects.

I am having trouble using the for statement in python3.Pour the list into the for statement into one function and put the calculated results into different objects.I want to save it, but it doesn't wo...

2 years ago

1 answers
106 views
0
Django Tutorial 2: Error in "Try Playing with API"

I'm a Python beginner.I am proceeding with Django's tutorial, but when I call pols in IDLE, I get the following error:>>from polls.models import Question, Choice  Traceback (most recent call las...

2 years ago

1 answers
123 views
0
I want to find a specific element in the 2D list and display its location.

2d_array=[0,0,0],[0,0,1],[0,0,0],[0,0,0]]I would like to print the final result '(1,2)' from the list like above.As a trial, I made a separate list, added each element to the array above, and then loo...

2 years ago

2 answers
69 views
0
I want to find all the coordinates of the intersection of the grid in the sphere.

In a three-dimensional space, set r=(x,y,z) by one point and Consider a sphere with a radius of n centered around it.The inside of this sphere is then divided into cubes in a grid.The side length of t...

2 years ago

1 answers
61 views
0
Specifying the Graph Start Point in matplotlib

I have a question about matplotlib.I'd like to graph two different lengths of data list1, list2.list1=[1,2,3,4,5]list2 = [6,7,8]If there is, plt.figure()plt.plot(list1)plt.plot(list2)plt.show()I think...

2 years ago

1 answers
44 views
0
Understanding Scrappy Middleware Configuration

I want to set HTTPCACHE_ENABLED to True in Scrapy, but I don't know how to set it.I read the Scrapy configuration documentation (https://doc.scrapy.org/en/1.4/topics/downloader-middleware.html), but I...

2 years ago

1 answers
56 views
0
How to resolve Python Kivy object is not subscriptable.

When I press the Change Text button, I want to run label_change for one class, but I get the error TypeError: 'kivy.properties.DictProperty' object is not subscriptable with the code below.What's wron...

2 years ago

2 answers
100 views
0
What is a byte string (binary) in Python?—Differences from other data types

This is a very basic question, but I'm sorry...While reading the following pages, I am no longer sure what binary is (in Python).7.1.structure—Interpret bytes as packed binary dataThe basic questions ...

2 years ago

2 answers
44 views
0
In python, determine the third element based on the first and second elements of the array.

I have a two-dimensional list, and I would like to decide which element to put in the third based on the first element and the second element. li=np.array([-1,-2] [ 1,-2] [-1, 2] [ 1, 2] )Specifi...

2 years ago
« - 68 - »

© 2024 OneMinuteCode. All rights reserved.