{"id":2486,"date":"2023-04-14T07:09:39","date_gmt":"2023-04-14T07:09:39","guid":{"rendered":"https:\/\/codeinsightacademy.com\/blog\/?p=2486"},"modified":"2023-04-14T07:18:53","modified_gmt":"2023-04-14T07:18:53","slug":"demo","status":"publish","type":"post","link":"https:\/\/codeinsightacademy.com\/blog\/python\/demo\/","title":{"rendered":"Demo"},"content":{"rendered":"\n<h2>Basic<\/h2>\n\n\n\n<ol><li>WAP to read 2 numbers and print addition<\/li><li>WAP to read 2 numbers and print subtraction<\/li><li>WAP to read 2 numbers and print multiplication<\/li><li>WAP to read 2 numbers and print division<\/li><li>WAP to read 2 numbers and print modulus (Remainder)<\/li><li>WAP to read radius and print area and circumference of circle<\/li><li>WAP to read length and breadth and print area and perimeter of rectangle<\/li><\/ol>\n\n\n\n<h2>Conditional Statement (if else)<\/h2>\n\n\n\n<ol><li>WAP to read a number and check if its positive or negative<\/li><li>WAP to read a number and check it is even or odd<\/li><li>WAP to read 2 numbers and find greatest among them<\/li><li>WAP to read 3 numbers and find greatest among them<\/li><li>WAP to read marks of 5 subjects and check the student is pass or failed<ol><li>add validation for marks less than 0<\/li><li>add validation for marks greater than 100<\/li><\/ol><\/li><\/ol>\n\n\n\n<h2>Loops<\/h2>\n\n\n\n<ol><li>WAP to print hello world 10 times with numbering<\/li><li>WAP to print square of numbers from 1 to 10<\/li><li>WAP to print numbers from 1 to given number<\/li><li>WAP to print cube of numbers from 1 to given number<\/li><li>WAP to read a number and print table of that number<\/li><li>WAP to execute Fizz Buzz Problem \/ Print number 1 to 100<ol><li>if number is divisible by 3 then print Fizz<\/li><li>if number is divisible by 5 then print Buzz<\/li><li>if number is divisible by both 3 and 5 then print Fizz Buzz<\/li><\/ol><\/li><li>WAP to execute lift program of 20 floor<ol><li>print number with delay of 1 sec (use time module&#8217;s sleep method)<\/li><li>skip 13 number<\/li><li>break after printing 13 <\/li><\/ol><\/li><li>WAP to create random jackpot number and take input from user to guess the number. Based on level the attempt to guess the number should change<ol><li>Easy \u2013 20 attempts<\/li><li>Medium \u2013 10 attempts<\/li><li>Difficult \u2013 5 attempts<\/li><\/ol><\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Basic WAP to read 2 numbers and print addition WAP to read 2 numbers and print subtraction WAP to read 2 numbers and print multiplication WAP to read 2 numbers and print division WAP to read 2 numbers and print modulus (Remainder) WAP to read radius and print area and circumference of circle WAP to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/2486"}],"collection":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/comments?post=2486"}],"version-history":[{"count":1,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/2486\/revisions"}],"predecessor-version":[{"id":2487,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/2486\/revisions\/2487"}],"wp:attachment":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media?parent=2486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/categories?post=2486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/tags?post=2486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}