Skip to content
Sign upLog in
Profile icon

python cookie

@WyattKinzer1
I'm 12 years old. I learned python about 3 months ago and haven't really used it. I like making simple things that are somehow fun.
Repls
Community
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
How do you use keyboard listen thingy!
I know that I used keyboard listen once or something but I don't remember how to use it or how to set it up! please help!
Class program
Python
RYANTADIPARTHI
RYANTADIPARTHI
Use mscrvt module to do this: https://docs.python.org/2/library/msvcrt.html2 years ago
MocaCDeveloper
MocaCDeveloper
perhaps this might help out too?2 years ago
MocaCDeveloper
MocaCDeveloper
Maybe this will help?2 years ago
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
so I want to make something that will have input from the user and print it out letter by letter. I also want it so I can make it have a set input so
Axrevyn
Axrevyn
I assume you're talking about scroll printing. import sys, time inp = input("Enter something: ") for letter in var: sys.stdout.write(letter) sys.stdout.flush() time.sleep(0.5) `2 years ago
Coder100
Coder100
a = input("Enter things: ") for letter in a: print(lettter) it will print letter by letter, but that implicitly gets turned into a list, if you want a list for use later: a = input("Enter things: ") my_list = a.split() read more here2 years ago
MocaCDeveloper
MocaCDeveloper
If it is in Python: user_input = input('Type Something: ') list_ = [i for i in user_input] for i in list_: print(i) `2 years ago
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
so I want to be able to add 5 to the if I in range loop, or is it possible to reseat it. It's not that important to me but it would be nice to know.Th
Eyncic
Python
Coder100
Coder100
Skip 5? Simple! for i in range(1, 101, 5): print(i) maybe you forgot to look at the docs for range() ;) https://docs.python.org/3.8/library/functions.html#func-range2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
There actually is a way to add five in a for loop. value = 0 for i in range(5): result = value + i print(result) That will work2 years ago
Bookie0
Bookie0
Hi, do you mean change the for i in range(5): to another number? in that case, you can simply change the number in parenthesis, or put a variable instead of 5 so you can update it easily. is this what you wanted?2 years ago
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
I'm asking you guys for words for Eyncic. so I'm technically still asking for help. I need more words. I will only take appropriate words. thanks
Eyncic
Python
WyattKinzer1
WyattKinzer1
It's so tedious to add more words, but it should be worth it.2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
here are 100 words for you: a about all also and as at be because but by can come could day do even find first for from get give go have he her here him his how I if in into it its just know like look make man many me more my new no not now of on one only or other our out people say see she so some take tell than that the their them then there these they thing think this those time to two up use very want way we well what when which who will with would year you your here are a few word websites2 years ago
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
So I'm making a dictionary for real, but I'm running out of words. so I'm hiring all of you to think of some words for me to add to think of words to
Eyncic
Python
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
so i want to make it so that they search for something and the definition appears with an image as well. I don't know if this is possible. thanks
Eyncic
Python
UniqueOstrich18
UniqueOstrich18
You can put an image into the terminal using a program called TerminalImageViewer. Insert this into the beginning of your code: import os os.system("wget https://raw.githubusercontent.com/stefanhaustein/TerminalImageViewer/master/src/main/java/TerminalImageViewer.java -q -O TerminalImageViewer.java") file = open("TerminalImageViewer.java") lines = file.readlines() lines[35] = ' " - When multiple files are supplied, -c sets the number of images per row (default: 4)." + ' file = open("Te2 years ago
Coder100
Coder100
Not with python, it is possible with tkinter read more here2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
Here's an image to help you. Screenshot 2020-10-27 at 2.15.42 PM2 years ago
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
2
It's a dictionary that I took a lot of time to make. And the funny thing is... it's not EVEN DONE! Please be nice in your comments. this has been real
Eyncic
Python
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
so i need to know how to make x = 1 go to x = 0 and back to x = 1 again. It's going to trigger something in my program that will cause it to reset.
Eyncic
Python
WyattKinzer1
WyattKinzer1
thanks guys :)2 years ago
Coder100
Coder100
You can just set it like this: x = 0 x = 1 And, you can also add to it: x += 1 # adds 1 to x x -= 1 # subtracts 1 to x You can also do math with x like you do in math class (this won't affect x): print(x + 1) `2 years ago
BD103
BD103
To set a variable, you can simply type x = 1. To use math on a variable, you can use one of the following. Add ~ x = 1 + 3 Subtract ~ x = 4 - 2 Multiply ~ x = 3 * 4 Divide ~ x = 6 / 2 You can also use shorthand to add/subtract for the variable. Add number ~ x += 1 Subtract number ~ x += -1 I recommend doing the following: if x == 1: x = 0 elif x == 0: x = 1 else: print("An error occurred! x doesn't equal 1 or 0!") I hope that answers your question!2 years ago
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
a dictionary for repl. IDK know why I'm making this. It's not done yet. please upvote if you enjoy it! :)
Eyncic
Python
WyattKinzer1
WyattKinzer1
now there is a search counter to tell you how many you have left.2 years ago
Alex0204
Alex0204
dance, art, music, culture, planet, weather, rain, time, dirt, tree, plant, species, water, air, electricity, wood, rocks, pollution. These are just some words off the top of my head. I assume you're just defining them. You could find the proper definitions on Google. I posted a question in ask. Is there any way you could help a fellow python programmer out?2 years ago
WyattKinzer1
WyattKinzer1
update: there are now 3 more search options, koala, cat, dog. post down in the comment more things for me to add to the Eyncic2 years ago
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
Idk what to do. so please use this.
PrimaryCraftyFunctions
Python
WyattKinzer1
WyattKinzer1
thanks, I could do a text-based adventure game.2 years ago
littlepenguin
littlepenguin
Like can you make a guessing game or a text adventure game?2 years ago
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
its somthing i made in a couple secounds in school because i was borad and wanted to.
LightyellowChartreusePagerecognition
Python
WyattKinzer1
WyattKinzer1
shared a Post
2 years ago
1
you can talk to a program. warning it is not ai. also, you can say yes and no to it. if you don't want to say what your hobby is just say nunya. let m
story
Python
WyattKinzer1
WyattKinzer1
fixed the bug it has to are we friends sequences so i had to make them not the same. because they were are we friends and the other one was the same.2 years ago
WyattKinzer1
WyattKinzer1
I just found a bug in the is we friends sequence. I'll try and fix it.2 years ago
JordynCarroll
JordynCarroll
This was cool! I like it it reminded me of something I would do. :)2 years ago