Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Asabeneh/30-Days-Of-Python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: gitfx/30-Days-Of-Python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 4 commits
  • 11 files changed
  • 2 contributors

Commits on Aug 29, 2021

  1. Add ActionServerless action

    gingerhot committed Aug 29, 2021
    Copy the full SHA
    abb60c1 View commit details
  2. Add changes

    github-actions[bot] committed Aug 29, 2021
    Copy the full SHA
    2dead81 View commit details

Commits on Dec 27, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b818d21 View commit details

Commits on May 1, 2024

  1. Update run_examples.yml

    gingerhot authored May 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e667064 View commit details
30 changes: 30 additions & 0 deletions .github/workflows/run_examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run examples

on: [push]

permissions:
contents: write

jobs:
test_run_examples:
runs-on: ubuntu-latest
name: A job to run examples
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clear result files ahead
run: rm -rf output/
- name: Run examples
uses: gitx-io/ActionServerless@master
with:
filepath: ./01_Day_Introduction ./02_Day_Variables_builtin_functions ./03_Day_Operators ./04_Day_Strings ./05_Day_Lists
- name: Git commit
run: |
# git commit if there's any change
if test -n "$(git status --porcelain 2>/dev/null)"; then
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Add changes"
git push origin ${GITHUB_REF##*/}
fi
2 changes: 2 additions & 0 deletions 01_Day_Introduction/helloworld.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# GET /output/01_Day_Introduction/helloworld

# Introduction
# Day 1 - 30DaysOfPython Challenge

1 change: 1 addition & 0 deletions 02_Day_Variables_builtin_functions/variables.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# GET /output/02_Day_Variables_builtin_functions/variables

# Variables in Python

2 changes: 2 additions & 0 deletions 03_Day_Operators/day-3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# GET /output/03_Day_Operators/day-3

# Arithmetic Operations in Python
# Integers

1 change: 1 addition & 0 deletions 04_Day_Strings/day_4.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# GET /output/04_Day_Strings/day_4

# Single line comment
letter = 'P' # A string could be a single character or a bunch of texts
2 changes: 2 additions & 0 deletions 05_Day_Lists/day_5.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# GET /output/05_Day_Lists/day_5

empty_list = list() # this is an empty list, no item in the list
print(len(empty_list)) # 0

15 changes: 15 additions & 0 deletions output/01_Day_Introduction/helloworld
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
5
2
6
1.5
9
1
1
<class 'int'>
<class 'float'>
<class 'complex'>
<class 'str'>
<class 'list'>
<class 'dict'>
<class 'set'>
<class 'tuple'>
16 changes: 16 additions & 0 deletions output/02_Day_Variables_builtin_functions/variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
First name: Asabeneh
First name length: 8
Last name: Yetayeh
Last name length: 7
Country: Finland
City: Helsinki
Age: 250
Married: True
Skills: ['HTML', 'CSS', 'JS', 'React', 'Python']
Person information: {'firstname': 'Asabeneh', 'lastname': 'Yetayeh', 'country': 'Finland', 'city': 'Helsinki'}
Asabeneh Yetayeh Helsink 250 True
First name: Asabeneh
Last name: Yetayeh
Country: Helsink
Age: 250
Married: True
67 changes: 67 additions & 0 deletions output/03_Day_Operators/day-3
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
Addition: 3
Subtraction: 1
Multiplication: 6
Division: 2.0
Division: 3.0
Division: 3.5
Division without the remainder: 3
Modulus: 1
Division without the remainder: 2
Exponential: 9
Floating Number,PI 3.14
Floating Number, gravity 9.81
Complex number: (1+1j)
Multiplying complex number: (2+0j)
5
a + b = 5
a - b = 1
a * b = 6
a / b = 1.5
a % b = 1
a // b = 1
a ** b = 9
total: 7
difference: 1
product: 12
division: 1.0
remainder: 1
Area of a circle: 314.0
Area of rectangle: 200
735.75 N
True
True
False
True
True
False
True
False
True
True
False
True
True
False
True == True: True
True == False: False
False == False: True
True and True: True
True or False: True
1 is 1 True
1 is not 2 True
A in Asabeneh True
B in Asabeneh False
True
a in an: True
4 is 2 ** 2: True
True
False
False
True
True
False
False
False
True
True
False
63 changes: 63 additions & 0 deletions output/04_Day_Strings/day_4
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
P
1
Hello, World!
13
I hope you are enjoying 30 days of python challenge
I am a teacher and enjoy teaching.
I didn't find anything as rewarding as empowering people.
That is why I created 30 days of python.
I am a teacher and enjoy teaching.
I didn't find anything as rewarding as empowering people.
That is why I created 30 days of python.
Asabeneh Yetayeh
8
7
True
16
P
y
t
h
o
n
P
y
n
n
o
hon
hon
hon
Pto
I hope every one enjoying the python challenge.
Do you ?
Days Topics Exercises
Day 1 3 5
Day 2 3 5
Day 3 3 5
Day 4 3 5
This is a back slash symbol (\)
In every programming language it starts with "Hello, World!"
Thirty days of python
3
1
2
True
False
thirty days of python
thirty days of python
5
0
I am Asabeneh Yetayeh. I am a teacher. I live in Finland.
The area of circle with 10 is 3.14
5
0
True
True
False
False
False
False
5
0
False
30 changes: 30 additions & 0 deletions output/05_Day_Lists/day_5
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
0
Fruits: ['banana', 'orange', 'mango', 'lemon']
Number of fruits: 4
Vegetables: ['Tomato', 'Potato', 'Cabbage', 'Onion', 'Carrot']
Number of vegetables: 5
Animal products: ['milk', 'meat', 'butter', 'yoghurt']
Number of animal products: 4
Web technologies: ['HTML', 'CSS', 'JS', 'React', 'Redux', 'Node', 'MongDB']
Number of web technologies: 7
Number of countries: 5
banana
orange
lemon
lemon
mango
['Avocado', 'orange', 'mango', 'lemon']
['Avocado', 'apple', 'mango', 'lemon']
['Avocado', 'apple', 'mango', 'lime']
True
False
['banana', 'orange', 'mango', 'lemon', 'apple']
['banana', 'orange', 'mango', 'lemon', 'apple', 'lime']
['banana', 'orange', 'apple', 'mango', 'lemon']
['banana', 'orange', 'apple', 'lime', 'mango', 'lemon']
['orange', 'mango', 'lemon']
['orange', 'mango']
['banana', 'orange', 'mango']
['orange', 'mango']
['orange', 'mango', 'lemon']
['orange', 'lemon']