+ 1

What can i import using python

Hello everyone....I just wanna ask what can I import in python....thank you

23rd Jan 2017, 10:25 AM
Blugon
Blugon - avatar
8 odpowiedzi
+ 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
23rd Jan 2017, 10:56 AM
Ahri Fox
Ahri Fox - avatar
+ 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!
23rd Jan 2017, 11:10 AM
Ahri Fox
Ahri Fox - avatar
+ 6
import random number=random.randint(1,5) # this generates a number between 1 & 5 print(number)
23rd Jan 2017, 10:39 AM
Ahri Fox
Ahri Fox - avatar
+ 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
10th Sep 2017, 1:56 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
libraries wich are installed
23rd Jan 2017, 10:35 AM
Jonas Geiler
Jonas Geiler - avatar
+ 1
can I import date&time or calender or more....if can please give an example thank you very much
23rd Jan 2017, 10:51 AM
Blugon
Blugon - avatar
+ 1
@Ahri Fox thanks....I am just curious that how come you can make those amazing codes?...(I saw your codes)
23rd Jan 2017, 10:59 AM
Blugon
Blugon - avatar
+ 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
23rd Jan 2017, 11:12 AM
Ринат Нургалиев
Ринат Нургалиев - avatar