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
19 views
0
The try statement keeps getting errors.

try: filename = input (Please enter a file name: ) with open(filename, 'r') as f: text = f.read().lower() except FileNotFoundError: print (File not found) word = text.replace('!', ' ').split...

2 years ago

1 answers
83 views
0
How do I open Windows Explorer in Python?

For example, if you run a program, you want to open the C:\ folder in Windows Explorer.I just want to double-click a folder on the window, how can I do it?

2 years ago

2 answers
97 views
0
The right way to do it when multiple return types of Python functions are required?

I need a function that changes the return type according to the conditions as follows.def get_info(command): if command == 'List': result = [1,2,3,4,5] elif command == 'Number': result = 3 elif comm...

2 years ago

1 answers
112 views
0
Enter the list of Python back when numbers are not the case law.

If you receive non-numeric characters to create the list, you will be prompted again, but the code will return to the beginning. How can I ask you to re-enter the part where the error occurred?while T...

2 years ago

1 answers
102 views
0
Static class member in Python

Can I create a static member variable or function in the Python class? What grammar should I use?


1 answers
99 views
0
I want to know how to get all the classes in the current module as a list

Usually, when you get a class as a list within a module, you write it like this# foo.pyclass Foo: pass# # test.pyimport inspectimport fooFor name, obj in inspect.getmembers(foo): Get class of #foo mod...

2 years ago

1 answers
14 views
0
Ask the Python GUI about utilizing the entry.

from tkinter import*from tkinter.colorchooser import*def paint(): color = askcolor() rec = Tk() r = Canvas(rec, width= 100, height = 100) r.pack() r.create_rectangle(10,10,90,90, fill = color[1])def d...

2 years ago

2 answers
30 views
0
Python Code Error Question! I ask you to do it!

Write a code that calculates the number of consecutive appearances of the same character in a string after one string is entered.Write to print out the most consecutive appearances.s=input()maxi=0coun...

2 years ago

1 answers
52 views
0
Write a single line of code divided into multiple lines

It's hard to see because I'm trying to write a very long code in one line.Can you divide a line of code into several lines?For example,e = 'a' + 'b' + 'c' + 'd'e = 'a' + 'b' +'c' + 'd'How to make it t...

2 years ago

1 answers
16 views
0
It's a question from Python def

I'm studying Python, but I don't understand it well, so I'm asking you a question.It's my first time asking this question...I don't even know if this is the right form.Def understood, result = add_mul...

2 years ago
« - 328 - »

© 2024 OneMinuteCode. All rights reserved.