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
119 views
0
Python flask 405 error

index.html{% for obj in data_list%} <!-- single item --> <div class=item my-3> <h5 class=item-name text-capitalize>{{obj.contents}}</h5> <div class=item-icons> <a hre...

2 years ago

1 answers
93 views
0
Recursive function question 55 from the Python Euler project

def func(list,n): list1 = [] for i in list: int1 = Lychrel(i) if symmetry(int1) == False: list1.append(int1) if n > 0: return func(list1,n-1) else: return len(list1)I solved question 55 in Eul...

2 years ago

2 answers
92 views
0
To join a python list element to a certain rule

# Parsing matchalpha_list = [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P]# After parsing alpha_list = [A, &, B, &, C, &, D, &&, E, &, F, &, G, &, H, &&, I, &...


1 answers
13 views
0
Code writing questions to read scores from Python text files

I need to save Python's entered score as a text file and write a code to get the total and average by reading the score from the text file, but I've never written a code related to the text file, so c...

2 years ago

1 answers
16 views
0
Get Sum and Mean of List Error Question

def func_sum(score,total): total=0 for data in score: total+=data return total score=[73,95,80,57,99] total=func_sum(score)print(Total score:,total)print (average score:, total/len(score))The purpose...

2 years ago

1 answers
42 views
0
A simple way to save and rewrite a data frame imported into requests.

We created a function that calls api and saves it in dataframe format as follows:I want to save the returned df value somewhere else and use it when creating another function.What's the way? I don't w...

2 years ago

1 answers
46 views
0
Error trying to put Python strings in the list one by one. TypeError: string indices must be integers, not str

I'm trying to cut strings one by one and put them on the list, but I keep getting errors. I'd appreciate it if you could tell me what the problem is.string = Hello World!list = []for i in string: lis...

2 years ago

1 answers
108 views
0
Differences between Python lists and sets

If you try to find the same value among the two lists in Python, it is usually for i in list1: for j in list2: if i == j : print(i)I found it using the for statement twice, but I changed it to a set...

2 years ago

1 answers
15 views
0
os.getcwd and os.path.dirname(_file__) difference

I want to know the difference between the two, just like the title.The result of executing the code is print(_file__)print(os.path.dirname(__file__))print(os.getcwd())C:/Users/Desktop/pythonedit/API/a...

2 years ago

1 answers
82 views
0
Python List

Save 'grave', 'banana', 'gravefruit' and 'melon' as elements in the list named Fruit, mix them with random module functions, and then how do I write the first element to display the message 'correct' ...

2 years ago
« - 389 - »

© 2024 OneMinuteCode. All rights reserved.