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
92 views
0
When is else used at the same level as the for / while repetition statement?

for i in range(10): print(i) if i == 9: print(Too big - I'm giving up!) break;else: print(Completed successfully)I don't know why you use else when you have a code like this.At first, I thought the ...


1 answers
132 views
0
What role do __init___ and self play?

I usually speak C language, and sometimes I don't understand Python because it's a habit.What do self and _init__ do in the functions below?Is there any reason why you have to write it down?I think it...

2 years ago

1 answers
16 views
0
I want to make Python repeat simple

I use multiple repetitive sentences separately, but it's a duplicate content... I want to know how to specify multiple of these at once.The repeat statement I use is for n in df2.Mag: if n >= 0.1...

2 years ago

1 answers
110 views
0
To convert date to datetime?

datetime can be changed to time type using datetime.date()Is there a Python built-in function that replaces date with datetime?I know it's called datetime(date.year, date.month, date.day).What I want ...

2 years ago

1 answers
160 views
0
Error: Non-ASCII character '\xe2' in file

Error: How do I resolve the Non-ASCII character '\xe2' in file?It doesn't pop up when I use English, but it only pops up when there is Korean$ cat bla.py print Hi!$ $ python bla.py File bla.py, line 1...


1 answers
97 views
0
How do I copy the Python list?

I just put it in the sauce below, and when list1 changes, list2 changes, tooFor me, list2 should be [1,2,3] continuously. I don't want to turn the door around and copy each and every one of themPlease...

2 years ago

1 answers
14 views
0
I'm a beginner at Python.

(Input value 1: 12345)/ Input value 2 : 5)In , input value 1 is [1,2,3,4,5]I'll make a listI'm making a program where I add the number on this list to get input value 2It's so hard. Anyone know how to...

2 years ago

1 answers
15 views
0
[Python] [Beginner] I want to make a random string generator that doesn't alternate numbers in English.

// Pythonimport stringimport randomEnglish string = string.ascii_lettersNumeric column = string.digitsString Length = 15Password = ''For i in range:// I don't want to alternate numbers with English he...

2 years ago

1 answers
138 views
0
When do you use the ASSERT?

Hello. I have a question, so I am posting it here. I was reading a few Python codes and I saw something called an assertIt's my first time seeing this keyword(?), so I'm looking for someone who can ex...

2 years ago

2 answers
50 views
0
syntaxerror-invalid-syntax-I don't know why it pops up.

This is after installing Python 3 and Atom and Miniconda. An error occurs when I run the Celsius converter program in cmd after writing a function in atom. Is there a problem with the function I wrote...

2 years ago
« - 291 - »

© 2024 OneMinuteCode. All rights reserved.