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
41 views
0
After using the Python extend function, an array mark appears in the list

We created a list and wrote an extend() function that adds up the other lists in it. But the variable has the expression array().For example, if you specify k=[] and a=[1,2],[2,3],[4,5],[6,7] are adde...

2 years ago

1 answers
33 views
0
[Python] Delete the last two characters and print them out

After receiving data in the word variable in the following code, enter Q and 0 in order to exit and output the data. If I run this code, how do I code to subtract Q and 0 and output it?

2 years ago

2 answers
47 views
0
Python, please recommend a book that is easy to study Janggo

I'm going to make a web with PythonPython Janggo is easy for beginners to study, and please recommend some books with good examples

2 years ago

1 answers
19 views
0
To compare two strings in a python if statement

The title is a bit vague, but I'll explain it. I'd like to give you a string as a condition in the Python if statement, but I'd like to give you two strings as a condition.ex:url = raw_input('>')if...

2 years ago

2 answers
65 views
0
Is there a way to know the true number in Python Repeat for?

There's a repeat forIf you get the number of numbers that are less than 10 divided by 3, you make the repeat statement like this.answer = 0for i in range(10): if i%3 == 0: answer += 1return answerBut...

2 years ago

1 answers
33 views
0
[python] Find specific characters in a string

file=open(python_07_05.txt, 'w')words=aawhile(words!=Q): words=input()#words.split() word=input()if words.find(word): infile.write(find word : +word)infile.close()outfile=open(python_07_05.txt,'r')tex...

2 years ago

1 answers
23 views
0
Is there a function to make the Python file again according to pep8?

I was teaming up, but when I made it, some people used tabs and some people indented it with spaces (even the number of tabs I wanted to...) I want to fix all of these according to pep8.I want to fix ...

2 years ago

1 answers
20 views
0
Monte Carlo integral approximation - importance sampling Question.

% matplotlib inlinefrom sympy import *from scipy import randomimport numpy as npimport matplotlib.pyplot as plta = 0b = 1 M = 100000 xrand = np.zeros(M)yrand = np.zeros(M)zrand = np.zeros(M)for i in ...

2 years ago

1 answers
42 views
0
What is the function of an underline (_) in Python?

I saw this code on the Internet, and I wonder what __ is doing with for_in instead of the string _.mylist = [1,1]if True: for _ in mylist: print(hello world!)hello worldhello world

2 years ago

1 answers
24 views
0
Modify conditional statements in python...

I simply changed the question.NP1=[-100,-100]NP2=[50,50]CHNP=[1,1]try: CHNP[(NP1 < 0) & (NP2 > 0)] = 99999except: CHNP = CHNPWhen you made the recordings. I would appreciate it if you could ...

2 years ago
« - 261 - »

© 2024 OneMinuteCode. All rights reserved.