This library has the primatives from computer science in python.
-
Install python: https://www.python.org/downloads/
-
- download pip https://bootstrap.pypa.io/get-pip.py (press ctrl + s)
- Download cs-cheats: https://github.com/Shadow2ube/cs-cheats/releases/
-
- press Windows + r
- type "cmd"
- press enter
- (Navigate to the download directory)
- (Navigate to the download directory)
Microsoft Windows [Version 10.0.19041.572]
(c) 2020 Microsoft Corporation. All rights reserved.
C:\Users\chris> cd path\to\get-pip.pyMicrosoft Windows [Version 10.0.19041.572]
(c) 2020 Microsoft Corporation. All rights reserved.
C:\Users\chris> cd path\to\py_cheats-1.0-py3-none-any.whlThis library is pretty simple to use. all you need to know is some simple python code
To get started,
-
open command prompt
-
type "py" into the command prompt
Microsoft Windows [Version 10.0.19041.572] (c) 2020 Microsoft Corporation. All rights reserved. C:\Users\chris>py
(python will start)
-
type "from cs_cheats import *" and press enter
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from cs_cheats import * >>>
(now you are ready to start)
py_cheats is different from in class because it doesn't need the algorithm to be numbered. but what it does need is for the code to be a working function
- use "def" in front of all functions
>>> def lOneTeen(a, b):-
if that line is a function or a question, use a colon at the end of it
-
indent all code inside of a statement
>>> def lOneTeen(a, b):
... x = a * b
... if (x > 1):
... return True
...- When you are done with a function, keep pressing enter until you get
>>>To test your code, simply type it and the parameters into the terminal
python will give you the answer
>>> def lOneTeen(a, b):
... x = a * b
... if (x > 1):
... return True
...
>>> lOneTeen(1, 2)
True