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
18 views
0
A program to get average scores and credits for Python questions

Obtain the average score of the two subjects, and write a program to get grades A 80 or higher, 70 or higher C 60 or higher, D or F (variable names are specified as score1, score2)How do I solve the q...

2 years ago

1 answers
22 views
0
Python for range syntax

pp=[]for i in range(12): pp.append([]) for j in range(12): pp[i].append(0)for i in range(10): a=input().split() for j in range(10): pp[i+1][j+1]=int(a[j])When I make a list called pp, I make a size ...

2 years ago

1 answers
17 views
0
Python for Syntax

ans=input().split('-')sum=0for i in ans[0].split('+'): sum+=int(i)for i in ans[1:]: for j in i.split('+'): sum-=int(j)print(sum)In this phrase ans=input().split('-')sum=0for i in ans[0].split('+'): s...

2 years ago

1 answers
63 views
0
Python repeat statement + DB related questions sqlite3.IntegrityError: NOT NULL constrain failed: T2022418.name

import sqlite3import datetimeDT_Now = datetime.datetime.now()Today = T{}{}{}.format(DT_Now.year, DT_Now.month, DT_Now.day)information = sqlite3.connect(info.db)curs = information.cursor()def CreateTab...

2 years ago

1 answers
18 views
0
Python question

n=int(input)nnn=1000-ncount=0while nnn>0: nnn=nnn%500 count+=nnn//500 nnn%=100 count+=nnn//100 nnn=nnn%50 count+=nnn//50 nnn%=10 count+=nnn//10 nnn=nnn%5 count+=nnn//5 nnn%=1 count+=nnn//1 if nnn==...

2 years ago

1 answers
20 views
0
Python break question

Time=int(input())pp=[300, 60, 10]result=[]count=0if Time%10==0: for i in range(pp): count+=Time//pp Time=Time%ppelif Time==0: Break # Why is there an error when break comes out here? print(count)

2 years ago

1 answers
99 views
0
Is there a Python app that allows you to use the iPad for turtle graphics? The web is good, too.

It's ㄴI'm going to touch the turtle graphic because of my midterms I'm inquiring because my laptop is heavy and I want to carry only my iPad. Is there a web or app that runs on the iPad? I looked it u...

2 years ago

1 answers
19 views
0
Python for Moon

n=list(input())n.sort(reverse=True)sum=0for i in n: sum+=int(i)Here Do these two mean different things?

2 years ago

1 answers
19 views
0
Python question

while True: a+=1 sum+=a if sum>s: breakThis syntax and while sum<s: a+=1 sum+=a if sum>s: breakI wonder why this phrase is different and doesn't work

2 years ago

1 answers
103 views
0
To output a list of Python recursive function utilization index values

The code I made is listn=[] #emptylist def searchn(list, key): #searchn function definition for n in range (len(list)): if list[n]==key: listn.append(n) print(listn) Like this, let the for statement...

2 years ago
« - 453 - »

© 2024 OneMinuteCode. All rights reserved.