or tag

453 questions


1 answers
61 views
0
What is the basis of the markdown editor used in hashcode?

I want to put a text editor in the django project, but there is nothing suitable, so I am posting a question.I like the text editor I used in the hash code, so can you tell me what it is based on?

2 years ago

1 answers
84 views
0
Replace string case using Python for statement

In Python, it says that to change the case of a string using the for statement, it should be the code below, but I don't know why it should be specified as new_text = str()!text = input('English case ...

2 years ago

1 answers
50 views
0
I'm creating a program that adds each digit number, but I don't know how to correct the error.

You are creating a program that adds each digit number.In the first iteration of the function lot, we figure out the number of digits, and in the second iteration, when we put the number 7984 in x, fo...

2 years ago

1 answers
85 views
0
I don't understand why these errors appear. TypeError: argument of type 'int' is not iterable

Let me show you the code first.arr1 = [1,2,3,3,3,3,4,4]arr2 = []arr3 = {1:0,2:0,3:0,4:0}# 1. Add as a list to the set value arr2 except for the overlapping numbers of arr1arr2 = list(set(arr1))a = 0b ...

2 years ago

1 answers
83 views
0
Using Thread, ValueError: signal only works in main thread error

I would like to do something else while calling YouTube live chat using Thread and pythchat.def chat_get(): global ytloc ytloc=https://www.youtube.com/watch?v=GoXPbGQl-uQ print(ytloc) chat = pytchat.c...

2 years ago

1 answers
113 views
0
Error handling

answer = 20while True: try: guess = input(Enter a number bet. 1 and 100: ) If guesses > 100 or guesses < 1: # If entered out of range print(only enter a number 1 and 100) else: if answer ==...

2 years ago

1 answers
138 views
0
This is an automated email code. It's Python, it works on a laptop, and the desktop has an error. UnicodeDecodeError in gethostbyaddr

I'm getting an error on my desktop. If you know the reason, please explain.I'm only looking for this for two days, but I'm asking you a question because my learning progress is not progressing.from em...


1 answers
103 views
0
For door

How do I make this part simple as a for sentence?

2 years ago

2 answers
94 views
0
I wonder how to add elements that exist during the list tour.

data_list = [[apple, 5], [grape, 3], [apple, 2]]result_data = []check_list = []for item in data_list: if item[0] not in check_list: result_data.append(item) check_list.append(item[0]) else: for res...

2 years ago

1 answers
94 views
0
Dividing Data Frames Using Panda's Beginner Repeating Statements

Hello, Python. I'm a beginner at Panda's.Declare the entire data as F1I would like to declare it as data by dividing it 97 times by 2,000 eachThat is, F1_0 is from index number 0 to 1999, F1_1 is from...

« - 42 - »

© 2024 OneMinuteCode. All rights reserved.