453 questions
Hello, I am studying PythonI wanted to delete a specific index in the array using del, so I made the following code. 'str' object does not support item deletion.There was no error before writing this ...
a = ['123']b = ['345', '456', '675', '678']for i in b: if i not in a: b.remove(i)print(b)The desired result value of b is [], but why is only the first element deleted?
print=Hello! This is pie coffee that stir-fry fragrant coffee beans. Please choose a language!) language=int (input('1. Korean 2.english 3.')語本')def coffee(c): if language == 1: if c==1: a=1500 el...
# include <iostream> using namespace std ; class Point { int x, y ; public: Point(int x=0, int y=0) { this->x = x ; this->y = y ; cout << \tPoint ; print() ; cout << con...
import randomlst = list()for i in range (0,10,1) : lst.append(random.randint(0,100))print(lst)maxidx = 0for i in range(0,10,1): if lst[maxidx]<lst[i] : maxidx=itmp =lst[maxidx]lst[maxidx] = lst[9]...
The error error: class found on application class path occurs when running Java.What's the problem?
If it's 10:15 as implemented in Everytime, I'd like to change it to only 1/4 color, which is 15 minutes, so how can I implement it?It is being implemented through textview.
1.#include <stdio.h>int main(void){ int a,i; scanf(%d,&a); for(i=1; i<a; i++) { a = a*i; } printf(%d,a); return 0;}2.#include <stdio.h>int main(void){ int a,i; scanf(%d,&a); fo...
I made a postfix calculator with Python, and the result came out weirdThe first line is a formula The second line is the output of the infix converted into a postfixIn the last line, the result value ...
« | - 18 - | » |
© 2024 OneMinuteCode. All rights reserved.