Code Monkey home page Code Monkey logo

Anagha Gaikwad's Projects

aws-slides icon aws-slides

Contains screenshots of all the slides of Andrew Brown's AWS Course

beatles-list icon beatles-list

Write a program that reflects these changes and lets you practice with the concept of lists. Your task is to: step 1: create an empty list named beatles; step 2: use the append() method to add the following members of the band to the list: John Lennon, Paul McCartney, and George Harrison; step 3: use the for loop and the append() method to prompt the user to add the following members of the band to the list: Stu Sutcliffe, and Pete Best; step 4: use the del instruction to remove Stu Sutcliffe and Pete Best from the list; step 5: use the insert() method to add Ringo Starr to the beginning of the list.

break__ icon break__

Design a program that uses a while loop and continuously asks the user to enter a word unless the user enters "chupacabra" as the secret exit word, in which case the message "You've successfully left the loop." should be printed to the screen, and the loop should terminate.

condition icon condition

Scenario Once upon a time there was a land - a land of milk and honey, inhabited by happy and prosperous people. The people paid taxes, of course - their happiness had limits. The most important tax, called the Personal Income Tax (PIT for short) had to be paid once a year, and was evaluated using the following rule: if the citizen's income was not higher than 85,528 thalers, the tax was equal to 18% of the income minus 556 thalers and 2 cents (this was the so-called tax relief) if the income was higher than this amount, the tax was equal to 14,839 thalers and 2 cents, plus 32% of the surplus over 85,528 thalers.

conditional-statements icon conditional-statements

Write a program that utilizes the concept of conditional execution, takes a string as input, and: prints the sentence "Yes - Spathiphyllum is the best plant ever!" to the screen if the inputted string is "Spathiphyllum" (upper-case) prints "No, I want a big Spathiphyllum!" if the inputted string is "spathiphyllum" (lower-case) prints "Spathiphyllum! Not [input]!" otherwise. Note: [input] is the string taken as input.

day-month-year icon day-month-year

write and test a function which takes three arguments (a year, a month, and a day of the month) and returns the corresponding day of the year, or returns None if any of the arguments is invalid.

leap-yearfunction-program icon leap-yearfunction-program

write and test a function which takes one argument (a year) and returns True if the year is a leap year, or False otherwise.

list icon list

Your task is to: write a line of code that prompts the user to replace the middle number in the list with an integer number entered by the user (step 1) write a line of code that removes the last element from the list (step 2) write a line of code that prints the length of the existing list (step 3.)

lothar-collatz-formula icon lothar-collatz-formula

In 1937, a German mathematician named Lothar Collatz formulated an intriguing hypothesis (it still remains unproven) which can be described in the following way: take any non-negative and non-zero integer number and name it c0; if it's even, evaluate a new c0 as c0 รท 2; otherwise, if it's odd, evaluate a new c0 as 3 ร— c0 + 1; if c0 โ‰  1, skip to point 2. The hypothesis says that regardless of the initial value of c0, it will always go to 1.

mgic-number-while-loop icon mgic-number-while-loop

A junior magician has picked a secret number. He has hidden it in a variable named secret_number. He wants everyone who run his program to play the Guess the secret number game, and guess what number he has picked for them. Those who don't guess the number will be stuck in an endless loop forever! Unfortunately, he does not know how to complete the code. Your task is to help the magician complete the code in the editor in such a way so that the code: will ask the user to enter an integer number; will use a while loop; will check whether the number entered by the user is the same as the number picked by the magician. If the number chosen by the user is different than the magician's secret number, the user should see the message "Ha ha! You're stuck in my loop!" and be prompted to enter a number again. If the number entered by the user matches the number picked by the magician, the number should be printed to the screen, and the magician should say the following words: "Well done, muggle! You are free now."

pyramid icon pyramid

Your task is to write a program which reads the number of blocks the builders have, and outputs the height of the pyramid that can be built using these blocks.

remove-repeated-elements-in-list icon remove-repeated-elements-in-list

write a program which removes all the number repetitions from the list. The goal is to have a list in which all the numbers appear not more than once.

vowel-eliminator icon vowel-eliminator

Scenario The continue statement is used to skip the current block and move ahead to the next iteration, without executing the statements inside the loop. It can be used with both the while and for loops. Your task here is very special: you must design a vowel eater! Write a program that uses: a for loop; the concept of conditional execution (if-elif-else) the continue statement.

year-month-day icon year-month-day

write and test a function which takes three arguments (a year, a month, and a day of the month) and returns the corresponding day of the year, or returns None if any of the arguments is invalid.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.