What is to do in Psychiatry?

0 28
Avatar for C0N1
Written by
3 years ago
Topics: Success, Nonsense, Write

Writing some Python Tutorials?

Sure, so lets start with it.

Python is a Pogramminglanguage which is used by the NASA, so its good enoug for you? I hope so.

Wecand find Python for your Operating System here: https://www.python.org/downloads/

So let's Build a Deamon.

We start that Tutorial with a simple Program called Sucubot.

A Sucubot is usualy doing Sex with Sleeping men and if she is not doing that sh watches porn. Thats wat a Sucubot is doing.

import time
import sys
import math
  • import time

    You can use the import time for handling Date and Time .

  • import sys

    Its good for Constants (Variables they never change the Value), Functions, Methods and many othe useful things.

  • import math

    is good for handling Mathematical operations like using PI and other things like that.

class Sucubot:
	lust = 10
	seconds = lust

To build a Class you can us the code above that text. You need Classes to build Objects. Objects have atributes you can work with.

xxx = Sucubot()
print(xxx.lust)
print("Lust")
  • xxx = Sucubot()

    With this code we build an Object Sucubot with the name xxx.

  • print(xxx.lust)

    The print(xxx.lust) show us the Value of the variable xxx.lust, it's 10.

  • print("lust")

  • Show's you the Word lust in the Python-Shell.

while True:
  • while True:

    Creates an endles while loop as long as we dont set that loop to False.

With the following code we can set a timer to count down the xxx.lust variable:

def countdown(t):
	 while t > 0:
		#print(t)
		 t -= 1
		 time.sleep(1)
		 xxx.lust = xxx.lust - 1
		 print(xxx.lust)
		 print("Mache Sex")
 seconds = xxx.lust
 seconds = int(seconds)
 countdown(seconds)
 print("Blast Off!!")

With that if statement we count up the xxx.lust Variable of the xxx.Sucubus() Object up to 10:

if xxx.lust == 0:
     print("Ich schau mir nen Porno an")
     while xxx.lust < 10:
         xxx.lust = xxx.lust + 1
         time.sleep(1)
         print(xxx.lust)
         print("Schaue grad Porn")

Now you can put all that code Snippets together and your own Sucubot can do her Job.

import time
import sys
import math

class Sucubot:
	lust = 10
	seconds = lust
        
xxx = Sucubot()
print(xxx.lust)
print("Lust")

while True:

 def countdown(t):
	 while t > 0:
		#print(t)
		 t -= 1
		 time.sleep(1)
		 xxx.lust = xxx.lust - 1
		 print(xxx.lust)
		 print("Mache Sex")
 seconds = xxx.lust
 seconds = int(seconds)
 countdown(seconds)
 print("Blast Off!!")

 if xxx.lust == 0:
     print("Ich schau mir nen Porno an")
     while xxx.lust < 10:
         xxx.lust = xxx.lust + 1
         time.sleep(1)
         print(xxx.lust)
         print("Schaue grad Porn")

2
$ 0.05
$ 0.05 from @mariteen
Avatar for C0N1
Written by
3 years ago
Topics: Success, Nonsense, Write

Comments