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
15 views
0
Python Rock-paper-scissors question

import randomwin=0draw=0lose=0while 1: com=random.randint(0,2) print ('Computer:',com) a=int('0:Scissors 1: Rock 2: Paper:') res=com-aif res==0: print('draw \n')if res==-1 or res==2: print('win \n') w...

2 years ago

2 answers
19 views
0
I have a question about the Python listcrying

Hello, everyone I'm inquiring because it couldn't be solved while working with Python For example, When there is a list a and b,a=[1,2,3,4,5]b=[6,7,8,9,10]Backside Could you help me with how two lists...

2 years ago

1 answers
100 views
0
A very simple 20-line country - a dictionary error in the search for the capital.

// Enter code here#A function that returns a city and country name when you type a city namedef city_country(): city = input (Please enter a city name :) city_country = {Seoul : Korea, Athens : Greece...

2 years ago

1 answers
139 views
0
Python type conversion

I'd like to change the value received by crawling the website to int with the string ex : 1,551 consisting of numbersI don't think I can convert to int because of comma.error message : Could not conve...

2 years ago

1 answers
62 views
0
When substituting the list for %-15s in python,

def manual() : menuList = [1. Determining the root of the quadratic equation], 2. Finding the internal branch, 3. Finding the external branch, 4. Find the center of gravity, 5. Read the instructions...

2 years ago

1 answers
39 views
0
Python questions! (Correct the questions below)

a[] = {1,3,2, 4,5,9, 7,6,1, 2,3,4, 5,6,7}for(int = 0; i<3;i++){if(a[i]=='1') { print(number 1)}if(a[i]=='2') { print(number 2)}if(a[i]=='3') { print(number 3)} if(a[i]=='4') { print(number 4)}if(a[...

2 years ago

1 answers
45 views
0
I wonder how I can replace send_keys in Python selenium.

Text input via send_keys in python selenium is too slow.You're repeating the task of importing from a text file and typing about 3000 bytes at a timeYou need a quick way to copy and paste from text.Wh...

2 years ago

2 answers
23 views
0
Is there any way to keep the execution window running even if I turn it off?

I'm currently using Python.If you turn off the window that usually appears during execution, the code execution stopsI want to keep the code running even if I turn off the execution window, is there a...

2 years ago

1 answers
47 views
0
Python numpy, ask me a question

#_*_coding:utf-8 _*_import numpy as nplst = [ [1,2,3], [4,5,6], [7,8,9] ]arr = np.array(lst)a = arr[0:2, 0:2]print(a)I'm studying for my Python exam The result is [[12] [45]] a = arr[0:2, 0:2] I don't...

2 years ago

1 answers
126 views
0
Python Excel row Repeat

Hello. I'd like to list the number of ranges in ExcelFor example, if 1.5 is entered, you want to implement it in a format that increases by 0.5 from -1.5 to 1.5. But I don't know what to do with the r...

2 years ago
« - 239 - »

© 2024 OneMinuteCode. All rights reserved.