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
84 views
0
I have a question regarding the Python list indexing.

stack = [3, 4, 5, 8, 0]print('stack : [')for x in stack: print(stack[x], end='') if x >= 4: print(']') break;As above, I tried to check if the value is output after declaring and assigning a list...

2 years ago

1 answers
18 views
0
[Python] I'd like to pick three or more elements that came out the most among the randomly generated lists.

import randomimport collectionsfrom collections import Countera=Counter()number_list=list(range(1, 100)for i in range(10) : c= random.sample(number_list, 10) a.update(c) c.sort() print(c)common=[m[0] ...

2 years ago

1 answers
74 views
0
Python, Unicode, and Windows Console

I'm using Python 2.5. When attempting to output a Unicode string on the Windows console, the error UnicodeEncodeError: 'charmap' code can't code character.... occurs. I'm guessing it's an error caused...

2 years ago

1 answers
127 views
0
I have a question about Python crawling.

Goals When I tried to do goal 1, I kept getting errors when I tried to put it on the list right away, maybe because it was http address apiSo I have to convert them into str, but it's too cumbersome t...

2 years ago

1 answers
15 views
0
Python readline() Question.

while True: Bus_Data = f.readline() Bus_line = Bus_Data.split(',') Bus_Dict = {} if len(Bus_line) == 2 : break print(Bus_line)I used the while statement to get the variable for each value ...

2 years ago

2 answers
15 views
0
Python Windows Program Development, Value Delivery

-Window program Making-==test.py==import os When you run test.py, you end up running ex2.py.But when I run ex2.py here, I want to pass the variable. What should I do at times like this?

2 years ago

1 answers
70 views
0
Comparison of map and list compression

Is there any particular rule for when to use map() and when to use list embedding?Which of the two is the more efficient and Python way?


1 answers
15 views
0
Adding a key to the Python Dictionary

After making dictionaries in Python, can I add keys?I don't know because I can't see the add() method.

2 years ago

1 answers
106 views
0
Is it possible to flip the dictionary like a keyword factor?

Is it possible to flip the dictionary like a keyword factor?d = dict(param='test')def f(param): print paramf(d)Output: {'param': 'test'} Now my code is running like this, but I just want to make test ...


1 answers
14 views
0
Python programming questions

I don't know how to program itㅠ

2 years ago
« - 326 - »

© 2024 OneMinuteCode. All rights reserved.