- Why learn Python?
- Getting started with Python
- Python on TI-nspire CX II CAS
- Python on command prompt
- Python’s built-in libraries and other sources.
- Variables types:
- Strings
- Numbers
- Booleans
- Lists
- Tuples
- Dictionaries
- Classes

- Functions:
- write
- call

- Conditionals:
- if, if else, if elif.
- AND, OR, NOT

- Loops:
- While loops
- For loops

- Try and Except
- Data manipulation
- open and close files
- read files
- read lines
- append files
- write over files
- creating new files

- Classes:
- create
- read
- inheritance
- working with super()

- Methods:
- @classmethod
- @staticmethod

- Import and Export

"""This program was written by Ilan Basha""" """It list all the prime numbers up to a value entered by the user.""" prime_numbers =[] notaprime_number=[] num = int(input("Please Enter a Terminating Value to Check for Prime Numbers:")) def is_prime(n): j=2 while j <= int(n/2): if n % j == 0: return False else: j = j + 1 return True i=1 """This program was written by Ilan Basha""" while i <= num: if i >= 2: if is_prime(i) == True: prime_numbers.append(i) i = i + 1 else: notaprime_number.append(i) i = i + 1 else: notaprime_number.append(i) i = i + 1 print('Prime numbers') print(prime_numbers) print('Not prime numbers') print(notaprime_number) """This program was written by Ilan Basha"""

Here is another example: This program checks if an input value is a prime number. """This program was written by Ilan Basha""" """It let's the user know if a specific number is a prime number""" def is_prime(n): j = 2 while j <= int(n/2): if n % j == 0: return False else: j = j + 1 return True num = int(input("Please Enter a Value to Check if it is Prime Number:")) print(is_prime(num)) """This program was written by Ilan Basha"""

## There are no reviews yet.