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

1000 questions


2 answers
2 views
0
Why is "None" coming up?

class Friend: def __init__(self, name, phone): self.name = name self.phone = phone def get_name(self, input_name): self.name = input_name def get_phone (self, input_phone): self.phone = input_p...

16 hours ago

1 answers
2 views
0
Use Python to transfer the contents of the list to Excel

filename = "File name.xlsx" book = openpyxl.load_workbook(filename) # sheet extraction sheet = book.worksheets[0] # Enter data data = [] data_value = data for row in sheet.rows: data.append([ row[0]...

1 days ago

2 answers
2 views
0
How can I insert the contents of Excel 2 into Excel 1 in Python?

For example, df1 and You have df2.How should I access the code to insert the contents of df2 into the blank of df1?I've used the merge or concat function, but I can't write it neatly, and it doesn't c...

2 days ago

1 answers
3 views
0
Python regular expression questions

pa = re.compile("(?P<A>\w+)(?):\[(?P<B>\d+):(?P<C>\d+)\]|[(?P<D>\d+)]") I want to know the meaning of the regular expression above. I understood the two (?P<A>\w+) and (?...

4 days ago

1 answers
4 views
0
Python undefined name 'Function name' error

// import random print ("Name Generation") Main character = input() print "The name of the main character" f"{Heroine}") while 1: power = random.randrange(3, 9) health = random.randrange(5, 9) man...

4 days ago

1 answers
3 views
0
I'd like to apply the command repeatedly to files that exist sequentially in Python/folder. Help me.

Hello, I'm Python's beginner. I've been doing this and that by myself, but I don't know the answer, so I'm leaving a question.The code is as follows.import glob list_filepath = glob.glob('/content/dri...

6 days ago

2 answers
3 views
0
Increasing Python ip Address

If I want to specify ip = '192.168.0.1' variable and increase it sequentially like 192.168.0.2, 192.168.0.3, what should I do?

6 days ago

1 answers
3 views
0
Is there a trigonometric operator in Python?

Is there a trigonometric operator in Python? How do you use it if you have one?

6 days ago

1 answers
3 views
0
Why do you write if __name__ == "__main__"?

In the code below, Why do you write if__name__=="__main_"? if __name__ == ""__main__"" print ""hello""

6 days ago

1 answers
1 views
0
Please tell me how to check the blank list

When you have an empty list a = [] as follows: Please tell me how to find out if a is empty or not.

6 days ago
- 1 - »

© 2022 pinfo. All rights reserved.