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
19 views
0
In import datetime, enter datetime.strptime() year 5 digits

from datetime import datetime,timedeltaa = input()(b,c,d) = a.split()e = int(b)f = int(c)g = int(d)today = datetime(e,f,g)tomorrow = today + timedelta(days=1)s = tomorrow.strftime(%Y%m%d)In this code,...

2 years ago

1 answers
58 views
0
Help! IndentationError: unindent does not match any outer indication level

If I run this code, I get an error ㅜ 왜 Why?import sysdef Factorial(n): # Return factorial result = 0 for i in range (1,n): result = result * i print factorial is ,result return resultIndentationErro...

2 years ago

1 answers
20 views
0
Is there a way to change the string to snake notation?

CamelCase -> camel_caseHow can I change the string written in camel notation to snake notation?

2 years ago

1 answers
45 views
0
To find out how many times a particular value repeats in the list

For example,list = [1,1,1,1,3,3,7,10]->1 is 4->3 is 2Is there a function that counts like this?

2 years ago

1 answers
20 views
0
This is a tag inquiry when you crawl Python.

#!/usr/bin/python#-*- #-*- coding: utf-8 -*-import requestsfrom bs4 import BeautifulSoupurl = http://~~~~target_code = requests.get(url)plain_text = target_code.textsoup = BeautifulSoup(plain_text,lxm...

2 years ago

1 answers
18 views
0
Python List Total

I'm getting an error trying to get the total of the elements by receiving it as a Python text file list. What should I do?file = open (/Users/Jinwoo Baek/Desktop/DSU/Curricular/Programming Introductio...

2 years ago

1 answers
58 views
0
An IndentationError error occurs.

def quotient(a, b): if b == 1: return a else: if a > b: a = a - b p = p + 1 else: return p return quotient(a, b)If you do this, the indentationError: unindent does not match any outer ind...

2 years ago

1 answers
103 views
0
I'm a beginner at Flask. The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

from flask import Flaskfrom flask import url_for,render_template,requestapp = Flask(__name__)@app.route(/hello/, methods=['POST','GET'])def profile(username=None): error = None if request.method == 'P...

2 years ago

1 answers
23 views
0
About Python isdir data processing

I have a question while using isdir.# Enter the directory to check and hand it over to the program routine# You have not yet set the turning part.# Directory verification command entered (os.path.isdi...

2 years ago

1 answers
84 views
0
Python coding questions

https://www.acmicpc.net/problem/10994This is the question about shooting starsPlease tell me how to code with PythonPlease let me know I'm frustrated because it's so hard.ㅜ

2 years ago
« - 265 - »

© 2024 OneMinuteCode. All rights reserved.