Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a34480a

Browse files
Started readme
1 parent fe19c91 commit a34480a

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

‎README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
1-
# PythonFundamentals
2-
Problem Sheet 1 for Emerging Technologies - Python Fundamentals
1+
# Problem Sheet 1 - Python Fundamentals
2+
3+
> Module: Emerging Technologies / 4th Year
4+
> Lecturer: Dr Ian McLoughlin
5+
6+
*Need to add some error handling.*
7+
8+
### Goals
9+
10+
The aim of these problems is to give you a good knowledge of basic Python. The problems are good for either learning Python from scratch or refreshing your memory of the language. They cover a variety of variable types, calculations, loops, user input, and in-built functions, among other things.
11+
12+
## Exercises
13+
14+
#### 1. Hello World
15+
A standard "Hello World" program.
16+
17+
#### 2. Current Time
18+
Prints the current time to the screen.
19+
20+
#### 3. FizzBuzz
21+
This program outputs all numbers 1 - 100 inclusive. If a number is divisible by 3, "Fizz" is printed instead of the number. The same goes for multiples of 5, except "Buzz" is printed. If a number is a multiple of both 3 and 5, the output is "FizzBuzz".
22+
23+
#### 4. Factorial
24+
The user enteres a number. The factorial of that number is calculated by multiplying it by every number preceding it and the result is printed to the screen. *Not finished yet, working on the sum of digits in the factorial answer.*
25+
26+
#### 5. Guessing Game
27+
The program generates a random number for the user to guess. The program tells the user if their guess was too high or too low, and tells them how many tries it took them when they get the number right. The program does not count multiple guesses of the same number.
28+
29+
#### 6. Smallest and Largest in a List
30+
The user enters a list of 5 numbers, and the program calculates and prints the smallest and largest numbers in the list.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /