This file contains 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
Hi 👋🏻 | |
I guess everyone registered in geeksforgeeks. | |
Upcoming wednesday we are going to do both product development and coding. Learning while doing a project/product is the only way to learn anything faster. | |
Learn by doing whatever you like. Since this is our first activity, I chose a very simple game to make in C/C++ | |
*Activity:* | |
Make a simple quiz game. | |
The program would ask questions. The user have to answer. The program should check if answer is correct or not. | |
*Bonus task:* | |
- make a grading system. |
This file contains 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 json | |
def writeToJSONFile(path, fileName, data): | |
filePathNameWExt = './' + path + '/' + fileName + '.json' | |
with open(filePathNameWExt, 'w') as fp: | |
json.dump(data, fp) | |
# Example | |
data = {} |
This file contains 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
#to parse the HTML | |
from bs4 import BeautifulSoup | |
#to make a headless chrome web browser | |
import selenium.webdriver as wb | |
from selenium.webdriver.chrome.options import Options | |
import sys | |
import time | |
#emoji is not supported in CLI so, convert it into boxes | |
translate_emoji = dict.fromkeys(range(0x10000, sys.maxunicode + 1), "\ufffd") |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>GPA CALCULATOR</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> |
This file contains 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
#FLAMES | |
print(' '+5*(u"\U0001F497 ")+'WELCOME TO FLAMES'+' '+5*(u"\U0001F497 ")+' ') | |
control = 1 | |
while (control == 1): | |
print('\n') | |
n1 = input('Enter your name: '); n2 = input('Enter your dream partner name: ') | |
input_name1 = list(n1.lower().strip().split()) | |
input_name2 = list(n2.lower().strip().split()) | |
name1=[] |
This file contains 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
10 | 4 | |
---|---|---|
10 | 3.4 | |
8 | 3.8 | |
5 | 3.2 | |
10 | 3.1 | |
3 | 4 | |
10 | 4 | |
10 | 3.6 | |
5 | 3 | |
2.5 | 2.7 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.