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
14 views
0
Utilize True value in Python def function

def a(): return Truea()if a==True: print()It's a simple one, but if you do it like above, it doesn't work properly. def a(): return Trueif a(): print()If you do the following, it works normally, but I...

2 years ago

1 answers
15 views
0
I'd like to arrange it randomly from the Python list.

I'd like to save 100 random numbers between 1-100 on the list and print them out 10 per line.For example, 77 82 5 13 91 85 43 22 23 90...33 12 95 35 21 34 68 51 53 9In the middle...has been omitted fo...

2 years ago

1 answers
17 views
0
Is there a way to expand a specific column in the dataframe structure of sqlContext in python pyspark?

%pysparksc.stop()from pyspark import SparkConf, SparkContext, SQLContextfrom pyspark.sql.functions import explodeimport jsonconf = SparkConf().setMaster(spark://local).setAppName(text)sc = SparkContex...

2 years ago

1 answers
74 views
0
The minimum value of the Python character input method is not found

n = str(Enter numbers separated by commas: )))x = min(n)print(Minimum value is %s. %(x))When I entered the number with the minimum value was I don't think I recognize the value of n. n = [1, 2, 3, 4...

2 years ago

2 answers
14 views
0
Make a NAN when the denominator is zero in the division between python arrays

In the Python expression PER = EndPrice / EPS EndPrice and EPS are two-dimensional arrays respectively There are cases where the EPS is zero, so there is no error.If the EPS is 0, I want to return the...

2 years ago

2 answers
79 views
0
I'm printing the current time by pressing the Python tkinter button, but why can't I print the GUI button?

If you click the button with the TKINTER GUI, the current time is printed, but the button is not printed in the 23rd and 3rd positions.There are no errors.What's the problem?from datetime import datet...

2 years ago

1 answers
39 views
0
Find the largest value by row and change the value

As above, I want to change the highest value by row in the data frame to 1 and the remaining value to 0.What should I do?

2 years ago

1 answers
44 views
0
[Python] Putting the list together

Hello, everyoneI want to put the lists in one of the lists ([a], [b], [c], ... []) or [a,b,c,d,e,...]). What should I do?Most of the time I looked it up, A = [a], B = [b] were made and put together li...

2 years ago

1 answers
127 views
0
I have a question about reverse().

phone_number='01033334444'phone_number=list(phone_number)phone_number=phone_number.reverse()print(phone_number)I want to use reverse to solve problems in other places besides thisNone is output every ...

2 years ago

1 answers
81 views
0
Code efficiency: Read_excel the various daily price data in Excel to make it a dictionary form.

#Create SuperfileOrgdf1 = pd.read_excel('C:\pytest\\Data_org_superfile.xlsx',sheet_name='name')Data_Org = {}for Freq in set(df1['Freq']): Data_Org[Freq] = {} for i,NAME in tqdm(enumerate(df1[df1['Freq...

2 years ago
« - 375 - »

© 2024 OneMinuteCode. All rights reserved.