Skip to content

Instantly share code, notes, and snippets.

View Babatunde13's full-sized avatar
🎯
Focusing

Babatunde Mudathir Koiki Babatunde13

🎯
Focusing
View GitHub Profile
import graphene
import json, csv
from datetime import datetime
from flask import Flask
from flask_graphql import GraphQLView
app = Flask(__name__)
class User(graphene.ObjectType):
id = graphene.ID()
@Babatunde13
Babatunde13 / app.py
Last active March 31, 2024 08:41
The first part of my Flask and SQLAlchemy series.
from flask import Flask, jsonify, request
from flask_sqlalchemy import SQLAlchemy
import uuid
app = Flask(__name__)
db = SQLAlchemy(app)
app.config['SECRET_KEY']='secret'
app.config['SQLALCHEMY_DATABASE_URI']='sqlite:///app.db'
@Babatunde13
Babatunde13 / week1.md
Created February 15, 2020 07:21
Week 1 assignment explanation

Following instructions strictly

You had X points should be out of the loop

String methods can be used to change a string: .lower, .upper, .title etc

Difference between .choice and .choices in the random module

In every if statement that has an elif statement there must be an else statement

Someone used a function and did not return anything in the function and he's trying to use a variable that's inside the function outside.

Writing a neat code

Sample mean and Population mean

Getting user input.: int, float, eva and getting texts from user.