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
118 views
0
What object is _(underlined) before the name?

What's the difference between one underlined object name and two underlined object names?Why are you using it?Are functions and variables used in the same sense?


1 answers
82 views
0
Python Beginner Voting Program Project

I tried to get the number of votes, use the repetitive sentence, use the number of votes, put the symbols i, put the letters on the list, show the voting list, ask what your choice is, and show you wh...

2 years ago

1 answers
18 views
0
Timeout when a function takes too long to complete

In order to visit the sites you want to take screenshots, we created a shell script that reads text files sequentially, including URLs for those sites.First of all, I implemented it simply without any...

2 years ago

2 answers
9 views
0
How do I save the Python list separately?

i = []for data in range(1,101): i.append(data)for data in range(101,201): i.append(data)print(i)This code[[1,2,3,4,5,6,7....100],[101,102,103,200] I want to save it in this way, but what should I do?

2 years ago

2 answers
77 views
0
Python Briefly Expresses Long If Statements

import numpy as npimport cv2 as cvimg = cv.imread('dp.png')img_h = img.shape[0]img_w = img.shape[1]img_bpp = img.shape[2]print(img_h, img_w, img_bpp)blue = (255,0,0)white = (255,255,255)a = 450b = 0c ...

2 years ago

1 answers
16 views
0
[python] invalid literal for int() with base 16 error handling.

Data Type: DataFrame data[nom_5] = int(str(data[nom_5].values),16)Error: invalid literal for int() with base 16: [50f116bcf', 'b3b4d25d0', '3263bdce5' ... '488406659' 'f9d17bb93'\n 'a5c276589']['50f11...

2 years ago

1 answers
113 views
0
How to remove a list item with an eater

Go to for in the list where you save the tuple I'm going to remove it if it meets certain conditionsI don't know how to remove the tuple.for tup in somelist: If condition (tup): #Remove the tuple

2 years ago

1 answers
11 views
0
Ask the Python output sequence.

# Number of cases 1def test_1(): print (Pass Point A) return 1print (through point D)output = test_1()print(output) #Number of cases 2def test_2(): print (Pass Point A) return 1output = test_2()print ...

2 years ago

1 answers
56 views
0
To save a function's name as a string?

Is there a way to save the name of a function as a string in a Python script?How do I implement get_functionion_name_as_string() in the source code below?def my_function(): passprint get_functionion_n...

2 years ago

1 answers
115 views
0
Delete Files/Folder

Please tell me the code to delete the file/folderI'm using Windows XP

2 years ago
« - 287 - »

© 2024 OneMinuteCode. All rights reserved.