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


2 answers
83 views
0
To extract only directories from the absolute path of the current file

I just want to find the absolute path to the directoryos.path.abspath(_file__) is C:\python27\\test.py It even contains files.C:\\python27\'How do I find out the directory path only like this?

2 years ago

1 answers
99 views
0
How do you use super() in Python?

In Perl and Java, super() was used to call the method of the parent class.package Foo;sub frotz { return Bamf;}package Bar;@ISA = qw(Foo);sub frotz { my $str = SUPER::frotz(); return uc($str);}I don't...


2 answers
104 views
0
To remove all annotations

How do I remove all annotations from the Python code?I made a code to find a pair of # or and erase the contents of itOccasionally, a problem occurs when the is used as a string.Isn't there a Python...


1 answers
136 views
0
Can I import the module again?

Without disrupting or restarting the Python serverThe module needs to be updated.If mymodule.py changes unimport mymoduleimport mymoduleOr If mymodule.py changes reimport mymoduleIs there a way to uni...


2 answers
19 views
0
Please recommend a Python 3.x textbook.

Famous books such as jump to python are usually written based on python 2.Python 3 should be taught to people who are new to the program, so if there is a textbook written based on Python 3, please re...

2 years ago

1 answers
149 views
0
How to erase only the first element in the list

[0, 1, 2, 3, 4] -> [1, 2, 3, 4]I'd like to remove the first element of the list together. Is there a function that does this?As I did, I don't think I need to use the for statement, but I don't kno...

2 years ago

1 answers
141 views
0
I'm going to compare the two lists and get only the elements that don't exist back

I want to compare the two lists and get only the elements that are not in each other returned For example, temp1 = ['One', 'Two', 'Three', 'Four']temp2 = ['One', 'Two']temp3 = [Three, Four]I want to w...

2 years ago

1 answers
28 views
0
Create GUID with Python

Is there a way to create a that works on all platforms?I heard that you use Active Python on WindowsI need code that works regardless of Linux Unix or something.

2 years ago

1 answers
114 views
0
How to write an if-else statement in one line

if count == N: count = 0else: count = N + 1Is there any way to write this code in one line?In object-C, count = count == N ? 0 : count + 1;We could have shared it, but I don't know exactly what that i...

2 years ago

1 answers
118 views
0
Where can I see the command line input to Python?

Hello.I'm making a shell by myself, but I don't know how to get a command line factor.In C, I got argc and argv from the mainWhat should I do with Python?I'm temporarily receiving raw_input() right no...

« - 201 - »

© 2024 OneMinuteCode. All rights reserved.