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
122 views
0
I'm making a Telegram bot with Python that tells me the movie schedule. I'm leaving a question because I don't know how to show you the ticket.

//import telegramfrom telegram.ext import Updaterfrom telegram.ext import MessageHandler, Filtersfrom bs4 import BeautifulSoupimport urllib.request as req######Yeongdeungpo CGv crawling related functi...


1 answers
60 views
0
python pandas dataframe superposition json structure flat method

df_list = [pd.read_json(file, lines=True) for file in glob('./data/*.json')]df_all = pd.concat(df_list, ignore_index=True)df_pick = df_all[['data','site']]>>> df_pick data site 0 {'k...

2 years ago

1 answers
41 views
0
[[0], [[1, 2], [3, 4]], [[5, 6, 7], [8, 9, 10], [11, 12, 13]]] I want to get the maximum value from the list.

Hello, just like the title, [[0], [[1, 2, [3, 4]], [5, 6, 7], [8, 9, 10], [11, 12, 13]]] I want to get the maximum value from the listI have no idea how to approach it.In the list, 1*1, 2*2, 3*3... I ...

2 years ago

1 answers
43 views
0
TypeError: unsupported operation type(s) for -: Why does 'list' and 'int' appear so much?

key = list (range (150, 180, 3))Standard weight = (height - 100) * 0.9for i in range(10): print (i + 1, height [i], cm, standard weight, kg)![Image][1] [1]: https://res.cloudinary.com/eightcruz/image/...

2 years ago

1 answers
83 views
0
Replace string case using Python for statement

In Python, it says that to change the case of a string using the for statement, it should be the code below, but I don't know why it should be specified as new_text = str()!text = input('English case ...

2 years ago

1 answers
18 views
0
Python list index out of range error

import random random.random()figure=[]for i in range(1,11): fig=random.randint(1,2) figure.append(fig)print(figure)a=0for i in range(10): print(figure[a]) a=a+1for i in range(9): if figure[a]==1: ...

2 years ago

1 answers
18 views
0
Scratch and run code on Python Internet

I have to update the code a lot, so can you run this loaded code to upload it to https://pastebin.com/ and load it as a request? If so, what should I do?

2 years ago

1 answers
130 views
0
Recall Python get api function

https://binance-docs.github.io/apidocs/futures/en/#long-short-ratioTo load data from here GET /futures/data/globalLongShortAccountRatioIt says so, how should I write the code?I'm asking based on symbo...

2 years ago

1 answers
16 views
0
I have a question about the shortest path to Python Floyd Walsh

I'm using this site for the first time I can find the shortest time while studying, but I can't find the route, so I'm asking you a questionINF=int(1e9)def print_d(x=0): if x: print (shortest distanc...

2 years ago

2 answers
19 views
0
ValueError when removing Python list: list.remove(x): x not in list

car = ['BMW', 'BENZ', 'VOLKSWAGEN', 'AUDI','BMW','BMW', 'BENZ', 'VOLKSWAGEN', 'AUDI','BMW','BMW']for i in car: car.remove('BMW')It says value error. Why is that?I need to erase only BMW using the for ...

2 years ago
« - 420 - »

© 2024 OneMinuteCode. All rights reserved.