Dim nono = 10Set obj = CreateObject("Scripting.FileSystemObject")Do while no = 10 If obj.FolderExists("..\world") Then obj.CopyFile "..\world", "..\Backups" WScript.sleep 86400000 '1 day in milliseconds, according to google.Loop while no = 10
also lol at most toxic guy around calling others out on this sh**
Set obj = CreateObject("Scripting.FileSystemObject")Dim worldfolderDim backupfolderworldfolder = "..\world"backupfolder = "..\autosave"Do If (obj.FolderExists("..\world")) Then msgbox "World file found!" obj.CopyFolder "..\world", "..\autosave" obj.CopyFile "..\world\*", "..\autosave" msgbox "Autosave complete!" Else msgbox "Error" Wscript.quit End If WScript.sleep 21600000 '6 hours in milliseconds, according to google.Loop
import mathprint("A^2 x 2B x C")numa = input('What is A? ')numb = input('What is B? ')numc = input('What is C? ')firstanswer = (numb + math.sqrt((math.pow(numb,2)+4*numa*numc))/(2*numa)secondanswer = (numb - math.sqrt((math.pow(numb,2)+4*numa*numc))/(2*numa)print("The answer is")print(firstanswer)print("or")print(secondanswer)
secondanswer = (numb - math.sqrt((math.pow(numb,2)+4*numa*numc))/(2*a) ^SyntaxError: invalid syntax
Code: [Select] secondanswer = .../(2*a)
secondanswer = .../(2*a)
import mathimport __future__ #SORRY I GOT THIS WRONG FIRST TIMEprint "A*x^2+B*x+C"a = input()b = input()c = input()#make sure no invalid stuff is happening, to prevent division#by 0, sqrt of minus nosif b ** 2 - 4*a*c < 0 or 2*a ==0: print "error" exit()ans1 = ( -b + math.sqrt( (b ** 2)-(4*a*c) )) / (2*a)ans2 = ( -b - math.sqrt( (b ** 2)-(4*a*c) )) / (2*a)print ans1print ans2
import mathprint("A^2 x 2B x C")numa = input('What is A? ')numb = input('What is B? ')numc = input('What is C? ')firstanswer = (-numb + math.sqrt(numb**2 - 4*numa*numc))/(2*numa)secondanswer = (-numb - math.sqrt(numb**2 - 4*numa*numc))/(2*numa)print("The answer is")print(firstanswer)print("or")print(secondanswer)
for x in range(1,len(numberslist)): ## Loop x amount of times for x amount of items there are in the list if numberslist[x-1] <= pivot: ## If the number chosen is smaller than or equal to the pivot lessthanpivot.append(numberslist[x-1]) ## Append the number to the end of the 'smaller than the pivot' list if numberslist[x-1] > pivot: ## Same as above but for numbers larger than pivot morethanpivot.append(numberslist[x-1]
numbertocheck = numberslist[x]
pivot = numberslist[pivotindex]