Skip to content

Course of Scientific Computing with Python - Exercise and questions

Notifications You must be signed in to change notification settings

Gromarant/Python-FreeCodeCamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Python-FreeCodeCamp

A collection of Exercise and questions from the Scientific Computing with Python course solved

Charles Severance (Instructor)

is a Clinical Professor at the University of Michigan School of Information, where he teaches various technology-oriented courses including programming, database design, and Web development.

Bio page | Python for Everybody page | Python FreeCodeCamp course

Python exercises

Some questions from the course aren't included in this repository, because they were simpler.

See exercise
  • class 3 Introduction: Python as a Language

    Class Description:

    Introduction to Python programming, syntax errors and python instructions

    Go to exercise repo | Go to class

  • class 4 Introduction: Elements of Python

    Class Description:

    Explanation of the learning process, reserved words, sentences, scripts and program steps or flow

    Go to exercise repo | Go to class

  • class 6 Intermediate Expressions

    Class Description:

    Explanation of the numeric expressions, data types, type conversions and user input.

    Exercises:

    02 - 02 EX - Python for Everybody Course: Write a program that uses input to pompt a user for their name and welcome them.
    02 - 03 EX - Python for Everybody Course: Write a program to prompt the user for hours and rate per hour to compute gross pay.

    Go to exercise repo | Go to class

  • class 7 Conditional Execution

    Class Description:

    Explanation of the if statement, conditional steps, comparison operators, indentation and nested conditionals.

    Go to exercise repo | Go to class

  • class 8 More Conditional Structures

    Class Description:

    Explanation of more conditional statements and try / except structure.

    Exercises:

    03 - 01 EX - Python for Everybody Course: Rewrite your pay computation to give the employee 1.5 times the hourly rate for hours worked above 40 hours.

    03 - 02 EX - Python for Everybody Course: Rewrite your pay program usin try and except so that your program handles non-numeric input gracefully by printing a message and exiting the program. The following shows two executions of the program.

    Go to exercise repo | Go to class

  • class 10 Build your own Functions

    Class Description:

    Explanation of the function creation process, how to define them, arguments, parameters and return values.

    Exercise:

    04 - 06 EX - Python for Everybody Course: Rewrite your pay computation with time-and-a-half for overtime and create a funtion called computepay which takes two parameters ( hours and rate).

    Go to exercise repo | Go to class

  • class 11 Loops and Iterations

    Class Description:

    Explanation of the iteration process, infinite loops and iteration with continue.

    Go to exercise repo | Go to class

  • class 12 Iterations: Definite Loops

    Class Description:

    Explanation of the for loop, in keyword and iterable variables.

    Go to exercise repo | Go to class

  • class 13 Iterations: Loop Idioms

    Class Description:

    Explanation of the loop construction and looping to find the largest number in a set.

    Go to exercise repo | Go to class

  • class 14 Iterations: More Patterns

    Class Description:

    Explanation of counting, summing in a loop, searching using a boolean variable.

    Exercise:

    05 - 01 EX - Python for Everybody Course: Write a program which respeactly reads numbers until the user enters "done". Once "done" is entered, print out the total, count, and average of the numbers. If the user enters anything other than a number, detect their mistake using try and except and print an error message and skip to the next number.

    Go to exercise repo | Go to class

  • class 15 Strings in Python

    Class Description:

    Explanation of the string data type, len() function and looping through strings.

    Go to exercise repo | Go to class

  • class 16 Intermediate Strings

    Class Description:

    Explanation of the function creation process, how to define them, arguments, parameters and return values.

    Exercise:

    06 - 05 EX - Python for Everybody Course: Take the following Python code that storesa string:

    str = 'X-DSPAM-Condidence: 0.8475 '

    Use find and string slicing to extract the portion of the string after the colon character and then use the float function to convert the extracted string into a floating point number

    Go to exercise repo | Go to class

  • class 18 Files as a Sequence

    Class Description:

    Explanation of file treatment as a sequence and how to read files and their content.

    Exercise:

    07 - 01 EX - Python for Everybody Course: Write a program to read through a file and print the contents of the file ( line by line ) all in upper case.

    Go to exercise repo | Go to class

  • class 19 Python Lists

    Class Description:

    Explanation of the algorithms, data structures, collections, lists and range() function.

    Go to exercise repo | Go to class

  • class 21 Strings and Lists

    Class Description:

    Explanation of the uses of the lists of strings and the double split pattern.

    Exercise:

    08 - EX - Python for Everybody Course: debugging code.

    Go to exercise repo | Go to class

  • class 22 Python Dictionaries

    Class Description:

    Explanation of the dictionaries and their differences with the lists.

    Go to exercise repo | Go to class

  • class 23 Dictionaries: Common Applications

    Class Description:

    Explanation of the common applications of dictionaries, histograms and get() method.

    Go to exercise repo | Go to class

About

Course of Scientific Computing with Python - Exercise and questions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages