
CMD'ye girerek aşağıdaki kontrolleri sağlayınız.
Kod: Tümünü seç
# Test pip
C:\>pip -V
pip 19.2.3 from c:\python38\lib\site-packages\pip (python 3.8)
# Test Python
C:\Python38>python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print(walrus := True)
True
>>>
>>> a = 11
>>> if (b := a) > 10:
... print(f'The value of b is {b} and greater than 10')
...
The value of b is 11 and greater than 10
>>> exit()
Kod: Tümünü seç
# Install eg Requests
C:\>pip install requests
Collecting requests .....
Successfully installed requests-2.22.0
# Test that Requests work
C:\>python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>>
>>> r = requests.get('http://python-forum.io')
>>> r.status_code
200
>>> r.headers['Date']
'Sat, 08 Feb 2020 19:42:48 GMT'
>>> exit()