Skip to content

Commit cac6173

Browse files
committed
Some updates
* Add copyright information inside folders of examples *Fix typo in README.md of "Rock, Papaer, Scissors" example
1 parent d8c8ff1 commit cac6173

File tree

20 files changed

+55
-2
lines changed

20 files changed

+55
-2
lines changed

circle-calculator/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Circle Calculator
22

33
A circle calculator program
4+
Copyright (c) 2020-2024 Ercan Ersoy
45

56
This example gets radius of an circle and calculate and display its circumference and area.

circle-calculator/circle-calculator.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Circle Calculator - A circle calculator program
2+
# Copyright (c) 2020-2024 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
pi = 3.14
26

37
radius = int(input("Radius of circle: "))

hello-world/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Hello World
1+
# Hello, World
22

33
A "Hello, World!" example program
4+
Copyright (c) 2020-2024 Ercan Ersoy
45

56
This example shows "Hello, World!" string.

hello-world/hello-world.py

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
# Hello, World - A hello world program
2+
# Copyright (c) 2020 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
print("Hello, world!")

number-guess-game/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Number Guess Game
22

33
A number guess game program
4+
Copyright (c) 2020-2024 Ercan Ersoy
45

56
This example gets guess number and generate a random decimal number from 0 to 100. If player guesses the number, the player wins. Otherwise the player loses.

number-guess-game/number-guess-game.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Number Guess Game - A simple number guessing game
2+
# Copyright (c) 2020 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
import sys
26
from random import random
37

random-number-generator/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Random Number Generator
22

33
A random number generator program
4+
Copyright (c) 2020-2024 Ercan Ersoy
45

56
This example generates desired random number of desired range.

random-number-generator/random-number-generator.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Random Number Generator - A simple random number generator
2+
# Copyright (c) 2020 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
from random import uniform
26

37
random_number_count = int(input("How many random number: "))

rock-paper-scissors/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
# Rock, paper, Scissors
1+
# Rock, Paper, Scissors
22

33
A rock, paper, scissors game program
4+
Copyright (c) 2020-2024 Ercan Ersoy
5+
6+
This example plays with a player rock, paper, scissors game

rock-paper-scissors/rock-paper-scissors.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Rock, Paper, Scissors Game - A simple rock paper scissors game
2+
# Copyright (c) 2020 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
from random import uniform
26

37
elements = ["rock", "paper", "scissors"]

simple-calculator/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Simple Calculator
22

33
A simple caclulator program
4+
Copyright (c) 2020-2024 Ercan Ersoy
45

56
This example can calcualte two numbers with addition, substraction, multiplication and division operations.

simple-calculator/simple-calculator.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Simple Calculator - A simple calculator program
2+
# Copyright (c) 2020 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
while True:
26
print("1. Addition")
37
print("2. Substraction")

simple-server/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Simple Server
22

33
A simple server program
4+
Copyright (c) 2020-2024 Ercan Ersoy
45

56
This example is giving information.

simple-server/simple-server.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Simple Server - A simple server program
2+
# Copyright (c) 2020 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
import socket
26
import sys
37

simple-window/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Simple Window
22

33
A simple window program
4+
Copyright (c) 2022-2024 Ercan Ersoy
5+
46

57
This example shows a example window.

simple-window/simple-window.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Simple Window - A simple window program
2+
# Copyright (c) 2022 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
import PySimpleGUI as sg
26

37
sg.theme("SystemDefaultForReal")

user-input-window/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# User Input Window
22

33
An simple user input program with window
4+
Copyright (c) 2022-2024 Ercan Ersoy
45

56
This example does not used a variable.

user-input-window/user-input-window.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# User Input Window - A simple user input window program
2+
# Copyright (c) 2022 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
import PySimpleGUI as sg
26

37
sg.theme("SystemDefaultForReal")

user-input/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# User Input
22

33
An simple user input program
4+
Copyright (c) 2020-2024 Ercan Ersoy
45

56
This example does not used a variable.

user-input/user-input.py

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
# User Input - A simple user input program
2+
# Copyright (c) 2020 Ercan Ersoy
3+
# This file licensed under MIT License.
4+
15
print(input("Enter a value: "))

0 commit comments

Comments
 (0)