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
16 views
0
Error: Non-ASCII character... error occurs.

For two natural numbers a, b, the quotient(a,b) function calculates the quotient(a,b) divided by bI'm writing a recursive version program, but there's an error in the sixth line...Please let me know w...

2 years ago

1 answers
117 views
0
The for syntax and count() behave strangely in python.

data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14]for i in data: if data.count(i) == 1: data.remove(i)print(data)output: [2,4,6,8,10,12,14]Why does an odd number work when I tried to erase the only value?

2 years ago

1 answers
13 views
0
I have a question about loading the Python file

What I want to express right now isFor example,Start with file=open('test.txt','w') and write only 8 random numbers from 1 to 100.(1,52,77,32,98,23,65,49)And I want to make a new test2.txt file by rea...

2 years ago

1 answers
127 views
0
Tfidf Embedding Vectorizer question among Python word2vec.

from sklearn.feature_extraction.text import TfidfVectorizerfrom collections import defaultdictimport numpy as np TfidfEmbeddingVectorizer class TfidfEmbeddingVectorizer(object): def __init__(self, wor...


1 answers
14 views
0
Related to Python for Moon

grid = [[(0, 0, 0) for x in range(10)] for x in range(20)]accepted_pos = [[(j,i) for j in range(10) if grid[i][j] == (0, 0, 0)] for i in range(20)] accepted_pos = [j for sub in accepted_pos for j in s...

2 years ago

1 answers
110 views
0
[python]

from tkinter import *import webbrowserroot = Tk()root.title(URL)# This is just a friend who opens up a browser windowdef mkurl(event): webbrowser.open_new(event.widget.cget(text))#This is a function t...

2 years ago

1 answers
67 views
0
I have a question about using Python Google voice recognition API.

I'm trying to sample Google API voice recognition with Python version 3.6, but there's an error.I try to use a sample that receives micro input from grpc and outputs it. File transcribe_streaming.py,...


1 answers
128 views
0
I want to know how to import files in different folders

at application/app/folder1/file.pyHow do I import application/app2/folder2/import_file.py?from application.app.folder2.import_file import func_nameI thought this would work, but it's not working ㅜ


1 answers
77 views
0
This is a question related to Python time

import timestart_time = time.time() #time.time()-start_time is the total running time of the programcount = 0while True: if A<10 and B<10 ~~~~~~ if A>20 and B>20 breakIt's a rough struct...

2 years ago

1 answers
49 views
0
What do other people do when they put elements in the front of the list?

I know that the last one is called list.append().Then, when you put it in the beginning,Which one should I use?

2 years ago
« - 280 - »

© 2024 OneMinuteCode. All rights reserved.