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
77 views
0
Location of Python Functions and Variables

class A: def aaa(self): return Nonedef aa(): a.aaa()a = A()print(aa())a = A()class A: def aaa(self): return Nonedef aa(): a.aaa()print(aa())When I use a function or class in Python, can I create a f...

2 years ago

1 answers
122 views
0
Python Dictionary Questions

Hi, everyone.I have a question regarding Python dictionary function.We created a function that matches the following largest score - person names.I think it's recognized as 2,1 if the score is 20,19.I...

2 years ago

1 answers
21 views
0
Do I have to create and use objects when I use Python classes?

When you use class methods, you can use all the classes by specifying objects in the classDo I have to use it like that? There's a reason, but I think it's just a class methodIt's easy to see that it'...

2 years ago

1 answers
131 views
0
All html codes do not go down when crawling the web with Beautiful Soup

While I was working on Python to download the code that can automatically download the past question from Ebsi, I downloaded the web page with beautiful soup, and I downloaded the code that was abbrev...


2 answers
112 views
0
Python Calculates Return After Fixed Date

Hello. I'd like to calculate the yield by date with Python. I'd like to know how to calculate the yield after fixing a specific date. Assuming that there is daily stock price data from 1983 to 2010, I...

2 years ago

1 answers
37 views
0
Python mysql error

import pandas as pd import openpyxl import pymysql NP0 = pd.read_excel('c:/Temp/ChangeNP.xlsx', sheet_name = str(2011)+str(1)+'Q') Code=NP0.iloc[5:,0] Name=NP0.iloc[5:,1] for index in range(1,34): yea...

2 years ago

1 answers
22 views
0
Why did the value of a variable change without changing the value in Python change?

matrix = [[1,2,3],[4,5,6],[7,8,9]]index = matrixa,b=0,0index[a][b] = matrix[a+1][b]print(matrix)If you output matrix from the above code, even though you did not change the matrix value [[4, 2, 3], [4...

2 years ago

1 answers
21 views
0
I'd like to get out of Python's double-repeated door. Give me wings.

new_score = []N = int(input())breaker = FalsewhileTrue: #Enter again if incorrectly score = list(map(int, input().split())) if len(score) == N: for s in score: if s <= 0 or s > 100: print(S...

2 years ago

1 answers
68 views
0
Python postfix Calculator Questions

I made a postfix calculator with Python, and the result came out weirdThe first line is a formula The second line is the output of the infix converted into a postfixIn the last line, the result value ...


1 answers
134 views
0
Python 3 input Enter multiple lines

print (Enter bank transaction history (ex, D 200 or W 100) Ctrl-D to save it)contents = []while True: try: line = input() except EOFError: break contents.append(line)If you press Ctrl-D after D 200 ...

2 years ago
« - 241 - »

© 2024 OneMinuteCode. All rights reserved.