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
17 views
0
Python TypeError: DataFrame object is not callable

There was an error like this, but did I do anything wrong with coding?

2 years ago

1 answers
71 views
0
I'd like to ask you a simple question about Python socket programming (about 50 lines of code including server cla). )

Server import socketHOST = PORT = 8081def receive(socket): data = socket.recv(1024) with open(D:/caps/test.jpg, 'wb') as f: try: while data: f.write(data) data = socket.recv(1024) except Except...

2 years ago

1 answers
16 views
0
Data Import Error Coding masters, please help me (Crying)

The one above the picture is iris data when I listen to the lectureNow I'm trying to load Iris data to do machine learning, but there's an import error. Help me!

2 years ago

1 answers
145 views
0
Is it impossible to take out the tuples on the list?

import itertoolsimport randomn = [1,2,3]a=list(itertools.combinations(n,2))b=list(random.choice(a))c =[]for x in a: if x not in b: c.append(x)print(a)print(b)print(c)I want to put the value of element...

2 years ago

1 answers
16 views
0
In/not in result output question

list_a = [ 273, 32, 103, 57, 52]273 in list_a99 in list_a100 in list_a52 in list_aWhen you enter it like this, the result value of true or false does not come out I wonder how to fix it.

2 years ago

1 answers
90 views
0
Save List to Python csv.

Hello.import csvfrom datetime import datetimech=0date=datetime.now()data=[4,54,65,87,37,83,42,90,3,43]csvfile=open('c:/test.csv','w',newline='')csvwriter=csv.writer(csvfile)csvwriter.writerow([ch,date...

2 years ago

1 answers
77 views
0
Is there a method that converts the selected table into a data frame right away with Beautiful Soup?

I want to scratch a table on a website and convert it into a data frame, or save it as an Excel file right awayIs there a function that converts the table selected by bs4 into a data frame right away?...


1 answers
72 views
0
Python's class method is not well understood.

import randomclass Account: # # class variable account_count = 0 def __init__(self, name, balance): self.deposit_count = 0 self.name = name self.balance = balance self.bank = SC Bank # 3-2-6 num...

2 years ago

1 answers
92 views
0
Question about inheritance example of class

Define the bike class so that the following code works: The terminal tram class inherits the car class.bicycle = bicycle (2,100)Bicycle.Price100The answer to this question is class car: def__init__(se...

2 years ago

1 answers
16 views
0
Is it possible to extract only the parts you want from the data frame read by Python csv?

Hello, I'm a beginner at Python.I am handling csv and Excel with DataFrame. I'd like to ask for your help because there's a blockage while trying this and that.As shown in the figure below, when there...

2 years ago
« - 425 - »

© 2024 OneMinuteCode. All rights reserved.