More to Python

From CompSciWiki
Jump to: navigation, search

COMP 1010 Home > Back to Extra Labs

Introduction

In the previous lab Introduction-to-Python you were taught what the Python programming language is and some basic features of Python. In this lab we will go a little more in depth in regards to what other things we can do with Python. Furthermore, you will learn how to use Strings, Data structures (arrays, lists, tuples) and functions(Methods in Java) in Python.

Image by Graeme Peters

String Method

Count the Vowel

Data Structure

Create an Array

Print an Array

Functions

Add Area

PrintArray Function