Home>
Is there a way to assign multiple lines at once in python?
For example, if I want to assign to lines 1, 3, 4
list = [1,1,1,1,1,1,1,]
list [0] = 3
list [2] = 3
list [3] = 3
If I want to assign the same number like
In the slide, 134 does not work because it is not an arithmetic sequence.
Please give me a detailed answer.
-
Answer # 1
Related articles
- python - why is the target encoder effective when there are more categorical variables than the one hot encoder?
- python 3x - is there a way to install plotlypy in python other than pip?
- python - how to break every 5 lines in the list
- python - shuffle a few lines of dataframes together using pandas
- how to erase ruled lines in excel file using python
- python: an error occurs that the type is different in the output using dict key values
- i want to display screens with different window sizes when i press the [python/tkinter] tab
- python - how can i place the grid lines of a bar chart behind the bars in matplotlib?
- how to assign to list when using python scraping find_all
- python - i want to remodel line is there a line version of the google extension?
- about combining when there are duplicate values in python dictionary type
- python - i want to swap the first half and the second half of the array and put them in different arrays
- python 3x - there is an error, but it is not reflected in the log file
- python - there is something wrong with the current code and i want to improve it and get the specified output
- python - data extraction based on date of birth when there was the same surname and same name
- i want to output multiple lines of html code using python
- about auxiliary lines and axis scales of python heatmap
- python - i want to swap the first half and the second half of the array and put them in different arrays
- python - please let me know because there is something i don't understand
- python polygon area calculation can't assign to operator
Trends