anagha-rg Goto Github PK
Name: Anagha Gaikwad
Type: User
Bio: Just started learning
Location: Pune
Name: Anagha Gaikwad
Type: User
Bio: Just started learning
Location: Pune
All KC from AWS restart
Contains screenshots of all the slides of Andrew Brown's AWS Course
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.
looping
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.
encrypt decrypt
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.
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.
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.
For loop to count seconds in game
WAP to find largest number with While loop
largest number with break
large number
write and test a function which takes one argument (a year) and returns True if the year is a leap year, or False otherwise.
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.)
sorting numbers in ascending order
WAP to find largest number in list
Slicing
find the location of a given element inside a list
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.
how to find largest number using MAX function
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."
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.
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.
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.
counting odd and even numbers
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.