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


2 answers
300 views
0
Why do Python's 'and' and 'or' have different results depending on how the values are written to the left and right?

If I enter print(0 or (1 and 2)) in Python, the return value is 2, but if I enter print(0 or (2 and 1))), why is the return value 1?I looked for help, but it didn't work out well.I've tried many patte...

2 years ago

1 answers
85 views
0
Pythorch What is the difference between these two codes?Please tell me who knows why only one of them has an error.

What is the difference between these two codes?Please tell me if you know why only one of them has an error.Why do only one error occurs when both types of torch.Tensor are added together?Please let m...

2 years ago

2 answers
29 views
0
In Python, about the remainder using a negative number.

Python Code print (-7%2) #1print(-7%3)#2print(7%-2)#-1print(-7%3)#2print(7%-3)#-2But don't you know why?

2 years ago

1 answers
47 views
0
Python comparison operator

I'm a python beginner. python runs the contents of imported files.Main()=>print(Hello) and processing are performed.It says.I don't understand the meaning Please let me know. For example, a>=b i...

2 years ago

2 answers
152 views
0
machine learning when characteristic quantities are related to each other

I have a question about machine learning.when the feature has several layers of structureFor machine learning with Python scikit-learn, etc.Please tell me what kind of data to treat and what model is ...

2 years ago

1 answers
29 views
0
I don't understand python code example

I just started programming a couple of days ago.I'm learning by reading a book called Self-Taught Programmer.When writing code, the first line is #http://tinyurl.com/hhwqva2There are some examples of ...

2 years ago

1 answers
34 views
0
Light Warning: What is Mixed line ending LF and CRLF?

Learning Python in JetBrains Academy, Well, Mixed lines ending LF and CRLFThis is not an error, but a warning appears.If you know what it means, could you explain it to me?Specifically, problems:copy ...

2 years ago

1 answers
28 views
0
I'd like to write a code that moves the red ball up and down on the canvas with python, but with the code below, the ball goes through the upper wall and disappears from the screen.What should I change?I want to make it using the winfo_height function.

I've tried many things and found out thatline19:if self.position[3]>=self.canvas_height:There is something wrong withI changed self.canvas_height to 500 and it worked, but it's out of line with wha...

2 years ago

1 answers
83 views
0
Unable to execute date command in subprocess.call

I'd like to execute the following command, but I don't know the correct format.How should I fix it?subprocess.call(date-set=January 1, 2017 01:02:03)Note: If you try to do it, you'll see the following...

2 years ago

1 answers
122 views
0
How do I use Python to generate images and strings for each product from linked menu images?

Sorry for the difficulty in understanding the titleFrom the menu image of Kura-zushi at the link below http://www.kura-corpo.co.jp/menu-cp/img/menu-index-pc-01.jpg·For each product (maguro|salmon|how ...

2 years ago
« - 51 - »

© 2024 OneMinuteCode. All rights reserved.