Answer the question
In order to leave comments, you need to log in
The cmd window does not start in all IDEs, python python, how to fix it?
When starting debugging, the cmd window does not open, regardless of the IDE, it does not give any errors anywhere. Tried in Sublime Text via SublimeREPL and in VSCode. At the same time, the code is working, it works stably through the online compiler. Versions of python and all IDEs are latest as of 03/13/2021. Tried on the code with OpenCV which worked without any problems, also the same problem
Here is the code:
elementsNum = input()
days = input()
daysMas = days.split()
four = []
three = []
i = 0
for elem in daysMas:
if int(elem) % 2 == 0:
four.append(elem)
else:
three.append(elem)
i+=1
fourStr = ""
threeStr = ""
for elem in four:
fourStr = fourStr + elem + " "
for elem in three:
threeStr = threeStr + elem + " "
print(threeStr)
print(fourStr)
if len(four) > len(three):
print("YES")
else:
print("NO")
from cv2 import cv2 as cv
import numpy as np
import pyscreenshot as ImgGrab
import os
img = ImgGrab.grab(bbox=(200,200,1366,768))
img.save("screenshot.png")
while True:
img = cv.imread("screenshot.png")
cv.imshow("Frame",img)
key = cv.waitKey(0) & 0xFF
if key == 27:
break
cv.destroyAllWindows()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question