ECODING PY1 Study Guide - Computational Science, Interpreted Language, Procedural Programming

6 views2 pages

Document Summary

Basic math operations: x + y, x - y, x * y, x / y. Loops: for i in range(10): python has a standard library that provides a wide range of modules for different purposes, such as: Datetime for working with dates and times. Os for interacting with the operating system. Csv for reading and writing csv files: python also has a large community of third-party libraries and packages that can be installed using a package manager such as pip. Matplotlib for data visualization tensorflow for machine learning and deep learning: python also supports creating functions and classes for reusable code: Defining a function: pythoncopy code def add_numbers(x, y): return x + y. Defining a class: pythoncopy code class person: def __init__(self, name, age): self. name = name self. age = age def say_hello(self): print(f"hello, my name is {self. name} and i am {self. age} years old. ") These are just some basic notes and codes for python programming.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Questions