Skip to content

Update README.md #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions Java_Beginners/56_javaBeginners.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
public class food{
void eat(){
System.out.println(" this food is great");
}
}

//tuna.java file

public class tuna extends food{
void eat(){
System.out.println(" this tuna is great");
}
}

//potpie.java file
Expand All @@ -28,12 +30,14 @@ public void digest(food x){
}
}
//apples.java file
public static void main(String[] args)
{
fatty bucky = new fatty();
food fo = new food();
food po = new potpie();
public class driver{
public static void main(String[] args)
{
fatty bucky = new fatty();
food fo = new food();
food po = new potpie();

bucky.digest(fo);
bucky.digest(po);
}
bucky.digest(fo);
bucky.digest(po);
}
}
8 changes: 4 additions & 4 deletions Python/09_python.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#from 0 to 10
for x in range(10):
for x in range(10): #it will print from 0 to 9.
print(x)

print("")

#from 5 to 12
for x in range(5, 12):
for x in range(5, 12): #it will print from 5 to 11. It is one less than the final number mentioned.
print(x)

print("")

#from 10 to 40 increment value 5
for x in range(10, 40, 5):
for x in range(10, 40, 5): #it will print from 10 to 35.
print(x)

print("")
Expand All @@ -22,4 +22,4 @@

while(buttcrack < 10):
print(buttcrack)
buttcrack += 1
buttcrack += 1
6 changes: 3 additions & 3 deletions Python/10_python_challenge.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Challenge
#Find the numbers whıch can dive 4 and 4 multiple(tetragenous) in from 0 to 100
#Find the numbers from 0 to 100(inclusive) which are a multiple of 4
for n in range(101):
if(n % 4 is 0):
print(n)
if(n % 4 == 0):
print(n)
1 change: 1 addition & 0 deletions Python/20_python.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#illustration of dictionary in python
classmates = {'Tony': ' cool but smells', 'Emma': ' sits behind me', 'Lucy': ' asks too many questions'}

for k, v in classmates.items():
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####Source Code from thenewboston Tutorials
## Source Code from thenewboston Tutorials

We are in the process of adding the source code from all of the tutorials to a public GitHub repository. If anyone would like to contribute, please feel free!

Expand All @@ -10,7 +10,7 @@ DigitalOcean: https://docs.google.com/document/d/1xOllgXRN10fWz1TsURh0OYI60TAVz0

***

#####How to Submit Source Code
### How to Submit Source Code

1 - Download [GitHub for Windows](https://windows.github.com/) or [GitHub for Mac](https://mac.github.com/)

Expand Down