Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/babyanonymouse/rita-africa

Learning Python
https://github.com/babyanonymouse/rita-africa

pycharm python3

Last synced: 1 day ago
JSON representation

Learning Python

Awesome Lists containing this project

README

        

# Python Lesson | RITA Africa

learning how to python from the video lessons

## Scratch

### Data Types

- int - 20
- bool - 'true' or 'false'
- str - 'this'
- float - 3.14

- you can use `print(type(variable_name))`to know the nature of the data
- variables use snake-case naming system (this_variable)

### Input

use the input function to prompt the user to enter values

```python
name = input("Enter your name: ")
print("Hello, " + name + "!")
```

### `is` and `in`

- `is` checks if the two values refer to same object in the memory
- `in` checks whether the value exists in a collection(list, tuples, etc.)