Posts

Showing posts from May, 2019

Maximum and minimum of three numbers

Image
Input :Three numbers Output :Biggest and smallest number among three numbers Logic :First compare any two numbers to see which is smaller and bigger between the two numbers, And compare it with the third number to find out which is the smallest and biggest number.

Positive or Negative number checker - V2

Image
Input  : Any number Output  : Positive or negative number Logic  : else_condition is used only if the if condition is wrong. if one of the if condition is true it doesn't check the rest of if conditions. Check out the first version of same program :  Positive or Negative number checker - V1

Maximum of two numbers

Image
Input :Two numbers Output :Which number is bigger or equal or lesser Logic :if_condition to compare which is bigger or smaller or equal

Swap numbers

Image
Input :Two number Output :Swap two number Logic :Temporary variable

Beat Saber game in VR

Image
Beat saber is a game that takes time to get good and it has different difficulty levels. Its like a work out since it requires a lot of movement from your arms. Good point : Its fun because you have music and you have to hit the square blocks with your swords. Improvements : You only have only about 20 songs so you have to install a mod to get more songs.

Positive or Negative number checker -V1

Image
Input : Any number Output : Positive or negative number Logic : if_condition is used to compare the input number with 0 and 1 Check out the first version of same program :  Positive or Negative number checker - V2

Week checker

Image
Input : Any number between 1-7 Output: Name of week day Logic : if_condition to compare number and print corresponding name of week day

Python month checker

Image
Input : One number between 1-12 Output : Name of the month Logic :if_condition and how to give a warning on entering invalid number

1. Movie Review : Pokemon Detective pikachu

Image
About : Pokemon Detective Pikachu is  a movie about where there is an evil character who has a business and he captured the pokemon Mewtwo. They experiment on the mewtwo to create a gas that makes pokemon psycho. The pokemon pikachu is partner of the detective guy. Good Points :  1. Its a very interesting movie because there is lots of adventure. 2. There are many pokemons like Pikachu, Bulbasaur, Squirtle, Charmander etc. 3. The graphics are superb in the movie. 4.The movie gives a realistic feel. Improvements : Nothing in my opinion  Is it worth watching ? YES

Number in words

Image
Input : One number between 0-9 Output : Number in words Logic : We used if condition in the program so it would write the number in words, We need if condition to compare two numbers.

sum natural numbers

Image

print natural number

Image

python multiplication tables

Image
Different ways of doing table multiplication in python : Version-1  Good - 1. It does the multiplication of 2 until 10. Bad - 1. It only can multiply 2 until 10. We cannot enter the number from keyboard. 2. And you have to write 10 print lines. Version - 2 Good- 1. You can choose your own first number. Bad- 1. It still only can multiply until 10 and you still have to write 10 lines of print. Version-3 Good- 1.The new good thing about this is the for loop, now we don't have to write print 10 times. Bad- 1. You can only multiply 10 times Version-4 Good-  1.We can choose both numbers now and multiply until how much we want.