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
To import and sort Python text files into a list

Hong Gil-dong Computer 72Yi Sun-shin Electronics 50a heterogeneous computer 80When the data in the file is like this, The data structure is made of classes with names, departments, and creditsYou want...


1 answers
85 views
0
I want to use the class for the values in the list (add code and error message)

a = class()b = class()c = class()..z = closs()In order to use the class, you must enter Instance = Class(). In this way, I didn't type in from a to z one by one, but I made a list and made a repeat se...

2 years ago

1 answers
125 views
0
Python numpy gen from txt question

You are currently performing an operation to read the txt file to Python numpy. Other data are neatly gathered (second image), while only certain data (first image) are like this, so I'm having troubl...


2 answers
97 views
0
Python) to align in feet, inches

Hello, I'm a freshman who just started programming!It's just that I'm sorting people's personal information by height.It's okay if the key is written in cm, but it's written in ft and in.ft doesn't ma...

2 years ago

2 answers
59 views
0
This is a question about Python for Moon.

def ndiv(l,n): return [l[i:i + n] for i in xrange(0, len(l) // n * n, n)] + [[e] for e in l[len(l) // n * n:]] print INSERTION : {}.format(ndiv(insertion, i)) print INSERTION1 : {}.format(ndiv(inserti...

2 years ago

1 answers
41 views
0
Please find a method to add one line to the Pandas.DataFrame

You want to create an empty DataFrame and write a code that adds one line at a time. Creating DataFrame succeeded, but when you try to add a row, an error occurs on the string side.How can I put diffe...

2 years ago

1 answers
45 views
0
Extract Python specific parts only

import res = 2019-11-22 5 people 010-1111-2222numbers = re.findall(\d+, s)print(numbers)Result value: ['2019', '11', '22', '5', '010', '1111', '2222']Is there a way to make only 20191112 come out her...

2 years ago

3 answers
129 views
0
To output a text file

I worked with Python to print the ALE.txt file in the picture like output.txt, but it's blocked to some extent. Can you help me?I made it roughly, but I don't know what to do from here.I don't know if...

2 years ago

1 answers
68 views
0
I want to add or multiply the same key values in the dictionary file

P1 {'amphibolite.txt': 0.00593448307396262, 'basalt.txt': 0.00513281304394720, 'breccia.txt': 0.00501607343520665}P2 {}P3 {'amphibolite.txt': 0.00484181658252891, 'siltstone.txt': 0.00486999982527626}...

2 years ago

1 answers
12 views
0
Questions about re.search, list, counter in Python

Here's an example of a problem I'm experiencing:a This is an example of extracting words that satisfy the pattern from the list and finding the frequency of those words.a = [Weird, Weird, Weird, Weird...

2 years ago
« - 337 - »

© 2024 OneMinuteCode. All rights reserved.