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
125 views
0
Find a specific word location in a string

Is there a method like java's contents or indexOf?I'm going to write it like this.if not somestring.contains (String to Find): continue


1 answers
103 views
0
To determine if a variable exists?

What should I do if I want to know what variables exist or not?Is there any other way than to write an exception like my code?try: myVarexcept NameError: # # Do something.

2 years ago

1 answers
53 views
0
How to find out the file creation date and modification date

I want to find out the file creation date and revision date on Linux and WindowsIs there a way to do it with just one code regardless of the platform?

2 years ago

1 answers
79 views
0
How to parse XML

Read the database storing xml in Python You have to.What should I do?<foo> <bar> <type foobar=1/> <type foobar=2/> </bar></foo>

2 years ago

1 answers
107 views
0
What is the role of __all__ in Python?

I'm studying Python. In the _init__.py file,__all__ <- I keep looking at itWhat do you use this for?

2 years ago

1 answers
76 views
0
Implementing 'mkdir-p'

You must create a function such as mkdir -p in the shell.Can I make it any other way than system call?I want it to be a short code with about 20 lines.

2 years ago

1 answers
96 views
0
To check if a directory exists or not

Using the os module,How do I check if a directory exists or not?

2 years ago

1 answers
63 views
0
The default argument value keeps changing

I thought the code below would always return [5]The price keeps changing.I thought a=[] would be executed whenever foo() was executed, but is it not?What is happening in foo()?def foo(a=[]): a.append(...


1 answers
65 views
0
--, Do ++

There is no posterior operator in Python, but there is a potential operator?So I used it, but the price doesn't increase.Why doesn't Python support front and rear increments like C++?a = 1++aprint a


1 answers
80 views
0
What are ** and * in the parameters?

What does * and ** attached to param2 do in the code below?def foo(param1, *param2):def bar(param1, **param2):

« - 196 - »

© 2024 OneMinuteCode. All rights reserved.