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
45 views
0
django field value question.

Hi, everyone. It's a django question. x = models.CharField()y = models.CharField()There are two fields and each field has a id = 1x = Hong Gil Dongy = [Apple, Melon, Watermelon]It is saved as shown in...

2 years ago

1 answers
73 views
0
I made an app with python py2app, but error message

os x YosemiteThe virtual environment in pyenv is python 3.5.1Install py2app with pip # -*- coding: utf-8 -*-from setuptools import setup# Information such as name, description, version, etc. is the sa...

2 years ago

2 answers
22 views
0
Python Code Questions

num_of_char, time_of_del = map(int, input().split())time = list(map(int, input().split()))inteval = []def intevalCal(time): n = -1 result = [] try: for num in time: n= n + 1 result.append(time[n+1]...

2 years ago

1 answers
26 views
0
Invalid string input in pycharm

import randomdef shuff(): num = ['2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A'] suit = ['s', 'd', 'h', 'c'] deck = [] for i in suit: for j in num: deck.append(j + i) random.shuffle...

2 years ago

1 answers
146 views
0
Python List Function Question

1.def random_pop(data): number = random.randint(0, len(data)-1) return data.pop(number)2.def random_pop(data): number = random.choice(data) data.remove(number) return numberThese two functions return ...

2 years ago

1 answers
72 views
0
Sorting result not output...

I was simply creating a sort selector. The five integers entered by the user are sorted by heap, bubble, and quick.t = 0print(Please enter 5 integers of your choice:\n)unsorted = []sorted = []while t ...

2 years ago

1 answers
48 views
0
How to compare lists

[List 1]abcde[List 2]efgabIf there are two lists, compare List 1 with List 2 in totalReturn 1 because element a is in list 2, and return 1 because element b is in list 2,Since c, d, and e are not in l...

2 years ago

1 answers
98 views
0
I want to know how to sort the list in descending order without using the built-in function of the list.

import randoma = random.sample(range(1,100,10) #using the random module sample, random.sample(range, end value, sampling count)smallest = a[0]for i in a: if i < smallest: smallest = iA = smallestpr...

2 years ago

1 answers
39 views
0
IndentationError: unexpected indent

# Finally, it loads mapping from integer node ID to human-readable characters. node_id_to_name = {} for key, val in node_id_to_uid.items(): if val not in uid_to_human: tf.logging.fatal('Failed to loc...

2 years ago

1 answers
23 views
0
Please help me with matching Python words

First of all, we need to match people's namesFor example,I brought the foreigner's name and key provided by website A. By the way, you need to take the age of those people provided by website B and ad...

2 years ago
« - 254 - »

© 2024 OneMinuteCode. All rights reserved.