This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num = int(input("Enter the number of rows ")) | |
for i in range(1, num+1): | |
for j in range(num-i, num): | |
print("*", end="") | |
print() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
win = 0 | |
tries =0 | |
count = 3 | |
print ("Let's Play 'GUESS THE NUMBER' Game!") | |
ans = input("Are you ready to play? [yes/no] ") | |
while ans.lower() != "no": | |
print("I'm thinking number from 1 to 10, Guess It in 3 tries ") | |
guess = random.randint(1,10) | |
for count in range (3,0,-1): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chance = "" | |
while (chance!="no"): | |
try: | |
num = int(input("Please enter a number\n")) | |
if (num%5==0 and num%3==0): | |
print("FizzBuzz") | |
elif (num%5 == 0): | |
print("BUZZ") | |
elif (num%3 == 0): | |
print("FIZZ"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# File: app\Http\Middleware\CORS.php | |
# Create file with below code in above location. And at the end of the file there are other instructions also. | |
# Please check. | |
namespace App\Http\Middleware; | |
use Closure; | |
class CORS { |