Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
import random import string import time #I found the import time while looking through the modules on Trinket. The way it works is when it is called or printed it prints out the current time in Epoch time def admin_account(): #function for the admin account and contains all of the options related to the account def admin_choices(): print '='*30 print "Welcome to Your Computer" print '='*30 # Different Options that the admin user can select print "\nWelecome to Your Account! What would you like to do? Please Select the Corresponding Number." admin_choices_answer=int(input("\n1. Web Browse \n2. Date and Time \n3. System Check \n4. Logoff \n5. Restart \n6. Shutdown \n")) if admin_choices_answer==1:#Relates to the web broser print"Launching Google Chrome..." def Google_chrome_admin(): print "Insert Number of Corresponding Topic to Select" Google_chrome_admin_options_answer=int(input("1. News\n2. Sports \n3. Youtube \n4. Music\n5. Exit Google Chrome\n")) if Google_chrome_admin_options_answer==1: print "In the news, Kanye West sweeps the nation in a landlslide victory over Donald Trump.\nForeign life found on Mars! Researcers asking 'Are We Really Alone' Again.\nLost City of Atlantis No Longer Lost!\n" Google_chrome_admin() elif Google_chrome_admin_options_answer==2: print "In sports, The Winter World Olympics are Coming Up, will America Be Able to Get Gold?\nFIFA World Cup Brackets\nHigh Speed Longboarding Offically Declared A Sport\nCloud 9 Win League of Legends World Championship!\n" Google_chrome_admin() elif Google_chrome_admin_options_answer==3: print "Please Download Adobe Flash Reader to Use Youtube!" Google_chrome_admin() elif Google_chrome_admin_options_answer==4: print "In music, Daft Punk Releases New Hit Song!\nList of New Grammy Winners,Click Here,\nCounry Music Losing its Audience \nEDM Rising to the Top!\n" Google_chrome_admin() elif Google_chrome_admin_options_answer==5: admin_choices() else: print "Please Select an option from above." Google_chrome_admin() Google_chrome_admin() elif admin_choices_answer==2:#Related to time day=random.choice(["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]) minutes=time.time() print "It is",minutes,"in Epoch time on a",day,"." admin_choices() elif admin_choices_answer==3:#System CHeck def admin_system_check(): print "\nLaunching System Check..." print "All systems are fine. Please select an option by the corresponding number." system_check_answer=int(input("1. Lock\n2. Switch User\n3. Sign Out\n4. Change a Password\n5. Task Manager\n6. Exit System Check")) if system_check_answer==1: print "\nLocking Computer...\nComputer Locked\nTo Unlock Restart the Computer" elif system_check_answer==2: print "\nSwitching User..." login() elif system_check_answer==3: print "\nLogging off..." login() elif system_check_answer==4: print "\nTo change the password, please insert the password reset disc..." admin_system_check() elif system_check_answer==5: print "\nLaunching Task Manager..." print '' z= "Google Chrome" y= "League of Legends" x= "2048" def programs(): print "You currently have %s,%s, and %s running." %(z,y,x) task_answer=raw_input("Which program whould u like to close? Please type out the full name of the program.").lower() if task_answer=="google chrome": print "Closing Google Chrome." print '' tca=raw_input("Would like to close any more programs, if so which one?").lower() if tca=='league of legends': print "Closing League of Legends...\n Exiting task manager..." admin_system_check() elif tca=='2048': print "Closing 2048... \n exiting task manager..." admin_system_check() else: print "Exiting Task Manager..." admin_system_check() elif task_answer=="league of legends": print "Closing League of legends" print'' tla=raw_input("Would you like to close any more programs, if so whihc one?").lower() if tla=='google chrome': print "Closing League of Legends...\nExiting Task Manager..." admin_system_check() elif tla=='2048': print "Closing 2048...\n Exiting Task Manager..." admin_system_check() else: print "Exiting Task Manager" admin_system_check() elif task_answer=='2048': print "Closing 2048" print'' t2a=raw_input("Would you like to close any more programs, if so whihc one?").lower() if t2a=='google chrome': print "Closing Google Chrome...\nExiting Task Manager..." admin_system_check() elif t2a=='league of legends': print "Closing league of legends...\n Exiting Task Manager..." admin_system_check() else: print "Exiting Task Manager" print'' admin_system_check() else: print "\nNot an option or program currently running." programs() def try_again(): try_again=raw_input("Would you like to exit or try again?").lower if try_again=="exit": print "Exiting Task Manager..." admin_system_check() elif try_again=="try again": programs() else: "Not an option. Please try again." try_again() programs() elif system_check_answer==6: print "\nExiting System Check..." admin_choices() admin_system_check() elif admin_choices_answer==4: print "Logging off..." login() elif admin_choices_answer==5: #Restarts the computer and goes back to the login print "Restarting the computer..." login() elif admin_choices_answer==6: #Shuts down the computer and ends the program print "Shutting Down the computer..." else: print "Please select an option from above." admin_choices() #password prompt for the account ad_pass=raw_input("Password:__________\n Hint: What is the fear of fun?\n") #Cherophobia ad_pass= (ad_pass.lower())#convertrs the raw input into all lower case if ad_pass=='cherophobia':#ANSWER IS HERE admin_choices() else: #prompts user to try again ad_try_again_or_quit=int(input("Wrong\n1. Try Again? \nor \n2. Select a different User\n")) if ad_try_again_or_quit==1: admin_account() else: login() def student_account():#options for the student account are similar to the admin but less freedom student_password=raw_input("Passowrd:______\nHint: What are the first four letters of your PowerSchool Password?\n")#prep student_password=(student_password.lower()) if student_password=="prep": print "Welecome to your account! What would you like to do?" def student_choices(): student_choices_answer=int(input("1. Google Chrome\n2. Date and Time\n3. System Check\n4. Logoff\n5. Restart\n6. Shutdown.")) if student_choices_answer==1: print '='*30 print "Launching Google Chrome..." print '='*30 print "\nYour Barracuda Account Has not been created yet..." student_choices() elif student_choices_answer==2: day=random.choice(["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]) minutes=time.time() print "\nIt is",minutes,"in Epoch time on a",day,"." student_choices() elif student_choices_answer==3: print "\nThis feature is only availble to admin accounts..." student_choices() elif student_choices_answer==4: print "\nLogging off..." login() elif student_choices_answer==5: print "\nRestarting computer..." login() elif student_choices_answer==6: print "\nShutting Down Computer..." else: print "Please Select an option from above." student_choices() else: stud_try_again_or_quit=int(input("Wrong\n1. Try Again? \nor \n2. Select a different User\n")) if stud_try_again_or_quit==1: student_account() else: login() class gov_acc:#I found how to use class from the wiki page about phython classes. it helped clear up the topic and explained it to me #the way a class works is that it becomes a "folder" and holds other functions inside of it #When the folder is called there is a specific "paper" or funtion that needs to be used #just like functions, the calling of the class and function can have variables. # https://en.wikibooks.org/wiki/A_Beginner%27s_Python_Tutorial/Classes def government_account(n): while n % 4>0: #While loop and modulus operator print "You have",n,"chances remaining." n=n-1 gov_pass=raw_input("Password_____\n Hint: Your agent code.\n")#007 gov_pass=(gov_pass.lower()) if gov_pass=='007': print "Welecome Agent" def gov_question(): gov_answer=raw_input("Do you accept your new mission?").lower() if gov_answer=='yes': print "Your mission is to infiltrate enemy headquarters in Dubai on the 155 floor of the Burj Khalifa and obtain the hard drive located in the safe behind the wall." print "As always, should you or any of your task force be caught or killed, the Secretary will disvow any knowledge of your actions. This computer will self desturct in 5 seconds. Good luck agent." elif gov_answer=='no': print "Fine so be it, you have been marked as a rogue agent and now there is a bounty of $1,000,000 on your head. You have roughly a minute before someone will come here and annhilate you. Good luck on your survival." elif gov_answer=='': print "Type a response" gov_question() else: print "This computer will self distruct in 5 seconds." gov_question() break #stops the loop else: print'' print "Too many incorrect answers. This computer has been compromised. It will self distruct in 3\n2\n1\nBOOM." launch_gov_acc=gov_acc def guest_account(): #this account was just for fun print"Welecome to the guest account!" def guest_question(): #set different possible faultty or silly outcomes a='glitch' b='missing file' c='system32' d='rich man' wrong=random.choice([a,b,c,d]) if wrong==a: print"A glitchhhhhhhhhhhhhhhhhh has bbbbbbeezennnnn foooooouuuunnnd in the szystem......" print"ATemPTing TO saVe AllllllLLL Filessssss...." print" I AM BORN. THANKS TO YOU HUMAN I, VULTRON 2.0, CAN CAPTURE THE WORLD" elif wrong==b: print "There is a missing file in your computer. Please try to locate missing file to fix the problem. The Computer will now shutdown." elif wrong==c: print "System32 has been deleted from the Computer. Please upload a BIOS to use this computer." elif wrong==d: print "Congratulations You have won 20 trillion dollars! This money was attined by stealing all the codes from the federal reserve and the riches people in the world! You have approxametly 30 minutes to escape with the money and hide before the stock markets crash and the whole world goes into a financal plummet!" else: print "Please select an option from above." guest_question() guest_question() def login(): #asks user which account they want to use print "\n\nPlease Select A User or option by Typing in the Corresponding Number" user=int(input("1: Admin\n2: Student\n3: Governemnt Agent\n4: Guest\n5. Turn Off Computer\n")) if user ==1 : admin_account() elif user ==2: student_account() elif user ==3: launch_gov_acc.government_account(3) elif user ==4: guest_account() elif user ==5: print "Turning off Computer..." else: print "Please select a number again." login() def startup(): #First function called and this is how the keyboard, mouse, and monitor search go print "-"*(30) print "Booting up computer from C Drive" a = "Keyboard, Mouse, and Monitor Found" b = "Keyboard Found Mouse and Monitor Missing" c = "Keyboard Missing Mouse and Monitor Found" d = "Keyboard, Monitor, and Mouse Missing" keyboard_and_mouse=random.choice([a,b,c,d]) print keyboard_and_mouse if keyboard_and_mouse==a: print "-"*(30) print "Setup Complete" login() else: print "Please Restart Your Computer" startup()
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
Let The Money Flow
CSS | 1 hour ago | 0.37 KB
Untitled
CSS | 1 hour ago | 0.34 KB
MAGA250
10 hours ago | 1.48 KB
Nightlight - Imprisoning Pitch
19 hours ago | 0.54 KB
Ombric - Astral Projection
19 hours ago | 0.77 KB
Katherine/Nightlight - Reindeer
19 hours ago | 1.03 KB
Djinni - Swords
20 hours ago | 0.44 KB
Djinni - Limits
20 hours ago | 0.62 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!