duplicate-elimination tag

3 questions


1 answers
116 views
0
Please let me know the English word quiz deduplication using dictionary!

<python>import randomdic = {'apple':'apple'', 'mango':'mango':'melon':'go':'go':'go':'tv':'TV'}score=0dic_list=tuple(dic.keys())dic_answer=tuple(dic.values())print([English word guessing quiz]. ...

2 years ago

2 answers
74 views
0
There's an infinite loop.What should I do?

int main(void){ int i = 0; int arr[10] = { 0 }; int j; int temp;while (i < 10){ printf(Enter an integer %d >, i); scanf_s(%d, &arr[i]); for (j = 0; j < i; j++); if (arr[i] == arr[j]) { p...


2 answers
109 views
0
Remove duplicate characters from Python3 (remove consecutive cases only)

ex) [3,5,7,7,3,7,3,3,5] For the list The set returns the result to {3,5,7}.The return price I want is [3,5,7,3,7,3,5] This is a case that you want to remove only if the same character or number comes ...


© 2024 OneMinuteCode. All rights reserved.