Open Assignment_02.ipynb using colab google, to connect with google drive, use my account: user name: ringku146.bd Password: 65989654faiz Open Assignment_02.ipynb file and procced & read the...

1 answer below »
This is assignment based on python coding & programming assignment. After completing the assignment, also a screen record video presentation is needed..... all the instruction in the file......


Open Assignment_02.ipynb using colab google, to connect with google drive, use my account: user name: ringku146.bd Password: 65989654faiz Open Assignment_02.ipynb file and procced & read the assignment Also for youtube presentation video upload, do it using my google account Thanks..
Answered 3 days AfterApr 03, 2022

Answer To: Open Assignment_02.ipynb using colab google, to connect with google drive, use my account: user...

Salony answered on Apr 05 2022
106 Votes
import os //because of file path
import random//for random number
import operator// to perform ai
rthmeitc calc
As instructed Connect your Colab to your Google drive.
from google.colab import drive
global declare maxScore
maxScore=0
Connect your Colab to your Google drive.
drive.mount('/content/gdrive', force_remount=True)
check if Score.txt contains anyting or not
if (os.path.getsize("/content/gdrive/MyDrive/Score.txt") > 0):
if contain data then open it and read it
file = open("/content/gdrive/MyDrive/Score.txt","r+")
print("I am happy to meet you again! Your last score was "+ file.read())
else:
print("Welcome to your Math Game!")
def myMathTest():

global maxScore
opearotors to perform calculations
ops = {'+':operator.add,
'-':operator.sub,
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here