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
106 views
0
There is a problem coding with Python. TypeError: '<=' not supported between instances of 'int' and 'NoneType'

I coded the image brightness adjustment, but when I run it, You get an error like this. I would appreciate it if you could tell me how to solve this problem.

2 years ago

2 answers
15 views
0
I don't know how to combine them. Python Dictionary

scores ={'James':94,'John':79,'Tomas':46,'Bob':60}print(scores)if 80 < score <= 100: print('s grade is A.)elif 60 < score <=80: print('Your grade is B.')elif 40 < score <=60: print('...

2 years ago

1 answers
16 views
0
The __str__ method fails to execute and an attribute error occurs.

# -*- coding: utf-8 -*-Created on Tue Sep 28 20:54:55 2021@author: Salieliclass State: def __init__(self, board, goal, moves=0): self.board = board self.moves = moves self.goal = goal # Exchange i...

2 years ago

1 answers
15 views
0
Question on how to store Python variable values

def search_f(): #search function search_value = int(input( To search for a punishment name by name 1 If you want to see the list of names of students, you can choose 2 If you want to see the list of p...

2 years ago

1 answers
69 views
0
When randomizing a Python list, randomize it by the number of random numbers n (please look at the code...)

I'm still an inexperienced student in coding.An error occurs when you try to randomly extract (redundant) n (1<=n<=18) from the list... In this case, I'd like you to tell me how to code.import r...

2 years ago

1 answers
47 views
0
I'm asking you a question after revising it again. Extract specific files from list

Hi, how are you?For example, the file name has the following specific patterns:3G1-1EW_E-W_ACC3G1-1NS_N-S_ACC3G1-1UD_U-D_ACC3G1-2EW_E-W_ACC3G1-2NS_N-S_ACC3G1-2UD_U-D_ACCWhen referred to as abc-def_g-h...

2 years ago

1 answers
16 views
0
Please save me from the mid-term exam of Python"T"

I have an information test next month, but I don't know anything from the description of last year's midterm exam. Help me, please.I've only learned the basics yet, so please let me know a simple one!...

2 years ago

1 answers
93 views
0
Python Dictionary Search Question

a['321'] = {'a' : '123', 'b' : '456'}a['789'] = {'a' : '987', 'b' : '654'}When using multiple dictionaries directly without loading files in this way Search 321 using infinite loops and for statements...

2 years ago

1 answers
70 views
0
Is it possible to use the value printed on the for statement?

I printed out the i value using the following equation.path =./file_list = os.listdir(path)file_list_csv = [file for file in file_list if file.endswith(.csv)]g = it.groupby(file_list_csv, lambda name:...

2 years ago

1 answers
18 views
0
I don't know which of the decimal creation codes is wrong.

The error above occurred, and the code below is the one I wrote.We want to find the number of prime numbers when we add three of the given numbers. When an array nums containing numbers is given as a ...

2 years ago
« - 432 - »

© 2024 OneMinuteCode. All rights reserved.