OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

What should I do to make termcolor work in pycharm?

  • Thread starter Thread starter comiser
  • Start date Start date
C

comiser

Guest
why termcolor coes not work in pycharm? i install it from cmd but it work in vscodenter image description here

you can see my code

Code:
def print_board():
    j = 1
    for i in board:
        end = " "
        if j % 3 == 0:
            end = "\n\n"
        if i == 'X':
            print(colored(f"[{i}]", "red"), end=end)
        elif i == 'O':
            print(colored(f"[{i}]", 'blue'), end=end)
        else:
            print(f"[{i}]", end=end)
        j += 1
<p>why termcolor coes not work in pycharm? i install it from cmd but it work in vscod<a href="https://i.sstatic.net/fD9WZ.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/fD9WZ.jpg" alt="enter image description here" /></a></p>
<p>you can see my code</p>
<pre><code>def print_board():
j = 1
for i in board:
end = " "
if j % 3 == 0:
end = "\n\n"
if i == 'X':
print(colored(f"[{i}]", "red"), end=end)
elif i == 'O':
print(colored(f"[{i}]", 'blue'), end=end)
else:
print(f"[{i}]", end=end)
j += 1
</code></pre>
 

Latest posts

S
Replies
0
Views
1
Safwan Aipuram
S
Top