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
42 views
0
To display the same number of character iterations

Why is there an error? The list is empty.I don't think you made the list empty;;;;;;;;If a string is entered and the same character is repeated consecutively To compress and display a string by displa...

2 years ago

1 answers
108 views
0
To change string to datetime format

on the listJun 1 2005 1:33PMAug 28 1999 12:00AMThere are a lot of the same stringsYou want to replace all of this string with datetime format and save it to DB.How do I change a string to datetime?

2 years ago

1 answers
35 views
0
I have a question for beginner Python students.

If you look at the data below, I want to include the #CHROM line so that the data below can come out in Excel format, but it keeps coming out in one line... Is there any way? Desired result is below C...

2 years ago

3 answers
12 views
0
Can you shorten it more simply?

import jsonwith open('C:\BicData\camping.json',encoding = 'utf-8') as k: data = json.load(k)i = 0for camping in data['records']: If 'car camping site' in camping ['camping site classification']: i +=...

2 years ago

1 answers
15 views
0
[Python] How to create a dynamic variable using a for statement! Doesn't Python have a separate function?

for i in range(10) : var_i = iIt doesn't recognize me like this.If you write a dictionary, you can tie it with key and value, but The key value is recognized as str.Is there a simple way?

2 years ago

1 answers
66 views
0
To run python functions simultaneously (parallel)

I made selenium crawl using Python and am using it.As a result, the implementation structure is def function_name(url): Function Contents It looks like above. url = 'www.siteurl.com'function_name(url)...


1 answers
101 views
0
Combine the tuples to make a dictionary

keys = ('name', 'age', 'food')values = ('Monty', 42, 'spam')Counting indict = {'name' : 'Monty', 'age' : 42, 'food' : 'spam'}I'm going to make.Please let me know if you have a better way than I've a c...

2 years ago

1 answers
42 views
0
I want to find the IP address of the user in django

Find the user's IP address in django When I run my code, I get an error, but I don't know where the problem is.# Create your viewsfrom django.contrib.gis.utils import GeoIPfrom django.template import ...

2 years ago

1 answers
14 views
0
Python Code Questions

If you enter a hexadecimal character, you want to write a code that distinguishes whether it's hexadecimal or notUse ifelse statements and or How do I convert hexadecimal to decimal and say no to hexa...

2 years ago

1 answers
47 views
0
Sort by Python column Question

import operatordef sort_table(table, col): return sorted(table, key=operator.itemgetter(col))x = [ [4, 6, 3], [7, 5, 2], [1, 3, 8] ]y = sort_table(x[0:3], 0)for i in range(3): for j in range(3): pri...

2 years ago
« - 307 - »

© 2024 OneMinuteCode. All rights reserved.