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
23 views
0
I have a question about how to extract the shortest word from the Python list

words = [[['Portuguese', ['Eu', 'falo', 'Português', 'muito', 'bem.']],['English', ['I', 'speak', 'Portuguese', 'very', 'well.']]]I'd like to extract the shortest word used in this listIf it's min (wo...

2 years ago

1 answers
16 views
0
Python question

input = open(keyword.txt, rt, encoding=utf8)output = open(output.txt, wt, encoding=utf8)with input, output: while True: chunk = input.read(4096) if not chunk: break chunk = chunk.replace(\u000B, ) ch...

2 years ago

1 answers
133 views
0
How do I determine the absolute path to a file?

Given a relative path, such as mydir/myfile.txtC:/example/cwd/mydir/myfile.txt Like thisHow do I find the absolute path?


1 answers
22 views
0
Doing Python Drain

x=int(int integer x=)if x%5==0 and x%4==0: print (multiple of 20)elif ~x%4==0 and x%5==0: print (multiple of 5)elif ~x%5==0 and x%4==0: print (multiple of 4)else: print(Bad Guys)input()If you type 5 h...

2 years ago

1 answers
89 views
0
Randomize lists

For example, what should I do if I want to show off 100 random things out of a thousand lists...?

2 years ago

1 answers
22 views
0
Problems with Python Keyboard Hooking Capitalization Only

Version 3.6.0 is in use.Keylogger source on the web.It's not for hacking. It's for Korean I'm going to make an automatic completion of the Naver search box.However, the source below only comes in capi...

2 years ago

1 answers
149 views
0
Modules in subdirectories cannot be imported.

When the directory structure is like this bin/ dir.py main.py usr/ user.pyI am importing class dir from dir.py and class user from user.py from main.pyThere is nothing wrong with dir modules in the s...

2 years ago

1 answers
85 views
0
Do I have to write myself to call the constructor of the parent class?

Is this the only way to call a parent class constructor in a structure where C inherits B and B inherits A?class A(object): def __init__(self): print Creator Aclass B(A): def __init__(self): super(B...


2 answers
18 views
0
I have a question about Python list.

Hello, I have a question about Python.There are three lists as below. A = ['AA/AA', 'BB/BB', 'CC/CC']B = [ [{'web_links': [{'name': 'hi'}], 'ref': '**hello1**'}, {'web_links': [{'name': 'hi'}], 're...

2 years ago

1 answers
154 views
0
Can I put two Python lists in the dictionary's key and value values?

Can I put two lists in one dictionary as keys and values?a=[Apple, Banana, Pineapple]b=[1,2,3]When dic={'Apple':1, 'Banana':2, 'Pineapple':3}Can you put it in order like this?

« - 258 - »

© 2024 OneMinuteCode. All rights reserved.