Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: 16-bit Adder made from logic gates
Post: 16-bit Adder made from logic gates

def nandgate(a, b): if a == 0 and b == 0: return 1 if a == 1 and b == 0: return 1 if a == 0 and b == 1: return 1 if a == 1 and b == 1: return 0 def invert(x): return nandgate(x, x) def ...
Iskuss Code sharing 2 2,522 Oct-03-2019, 04:57 PM
    Thread: Thesis Writer 2000
Post: RE: Thesis Writer 2000

Thanks for the feedback. I didn't mean a thesis paper, but a thesis paragraph for a regular essay. I was just going with the structure my professor told us to use: Thesis statement, mp1, relevancy 1, ...
Iskuss Code sharing 2 3,150 Dec-12-2017, 08:44 PM
    Thread: Thesis Writer 2000
Post: Thesis Writer 2000

print("Thesis Writer 2000") print("First you need a thesis statement. This is the idea or claim you're trying to prove.") print("Example: Dogs are better than cats for three key reasons.") thesis = r...
Iskuss Code sharing 2 3,150 Dec-12-2017, 07:44 PM
    Thread: Basic RPG
Post: RE: Basic RPG

Thanks, and I might end up doing: if menu.lower() in ["help", "h"]:And allow 1 letter abbreviations for all commands for ease of use.
Iskuss Code sharing 13 10,704 Dec-12-2017, 06:00 AM
    Thread: Basic RPG
Post: RE: Basic RPG

Added Level up, Rest, Explore, Stats, and ability to save and load progress even after closing program. import random import sys player = {} #Makes player{} dictionary global #Enemies goblin = {} g...
Iskuss Code sharing 13 10,704 Dec-07-2017, 06:05 AM
    Thread: TypeError in my Simple RPG
Post: TypeError in my Simple RPG

This is a basic RPG that I'm working on. The program runs fine until the highlighted section. For the most part it runs correctly there, but if you try to enter a number that's not 0, 1, 2, 3, 4, or 5...
Iskuss General Coding Help 1 2,555 Dec-06-2017, 03:15 AM
    Thread: Basic RPG
Post: Basic RPG

This is a basic RPG where you fight Goblins and Giant Rats until you die. I will make this a part of a larger more interesting game in the future maybe. The stat calculations are unbalanced, and it's ...
Iskuss Code sharing 13 10,704 Dec-04-2017, 02:38 AM
    Thread: Stream Cipher Encryption and Decryption
Post: Stream Cipher Encryption and Decryption

Encryption (Python 2.7) def main():    message = raw_input("Enter a message without spaces or punctuation. ")    message = list(message)    n = 0    while n < len(message):        if message[n...
Iskuss Code sharing 3 6,485 Jun-05-2017, 03:15 AM
    Thread: Simple averaging program
Post: Simple averaging program

Probably the most convoluted way to find the average of a set of numbers in Python but here it is. amount = int(input("Enter number of items: "))#Gets amount of numbers to be averaged q = "q" for x i...
Iskuss Code sharing 5 4,774 Jun-05-2017, 03:07 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020