Dec-26-2019, 07:54 PM
Whenever i try to run a script through Python 3.8 it gives me the following output:
Output:Please enter a string:
(a)There is a total of 0 characters in the string.
(b)
(c)
(d)
(e)
(f)
(g) There are not seven characters in that string
(h)
(i)
(j)
(k)
Traceback (most recent call last):
File "lucky.py", line 4, in <module>
import requests, sys, webbrowser, bs4
File "/usr/local/lib/python3.8/site-packages/requests/__init__.py", line 43, in <module>
import urllib3
File "/usr/local/lib/python3.8/site-packages/urllib3/__init__.py", line 7, in <module>
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 3, in <module>
import logging
File "/usr/local/lib/python3.8/logging/__init__.py", line 28, in <module>
from string import Template
ImportError: cannot import name 'Template' from 'string' (/home/computer/First_Programs/string.py)
Can somebody please help me?