8 Réponses
+ 5
@blugon87 yes you can. you can look at my "# of days until Christmas" code as an example. if you want to learn imports, read the documentation for whatever module you want to learn.
if you have anymore questions, join this discord group and fellow coders may try and help: https://discord.gg/hj3XxpZ
+ 7
@blugon87 (2) I can make such amazing codes by analyzing and messing with someone else's codes, not to steal, but to learn what it does. I then use it for a completely different purpose, often running into errors and learning to fix them one by one. Soon I begin to understand it completely and can easily implement it into anything I want.
So in your situation, I would steal my code, and try and figure out how to make it count down to another holiday (like your birthday or thanksgiving). Then try and do something different like make it count down to the second or something. You'll likely have to look up how to do it. But you'll learn!
+ 6
import random
number=random.randint(1,5)
# this generates a number between 1 & 5
print(number)
+ 3
The Python Standard Library is readily available for you.
You can use third-party librarirs too.
Just finish the course.
https://www.sololearn.com/Course/Python/?ref=app
+ 1
libraries wich are installed
+ 1
can I import date&time or calender or more....if can please give an example thank you very much
+ 1
@Ahri Fox thanks....I am just curious that how come you can make those amazing codes?...(I saw your codes)
+ 1
you can import anything that is in python lybrary already like datetime, random, itertools etc, or anything you already made yourself, and any module you installed