R16
@R16
This is a calculator I made through python, in this there is no limit of the numbers you can calculate,you wanna go for a billion numbers just go for
Python
I have made a python project on calendar and Date time module, which you can see on my project. So, I’m quite eager to learn about more modules in pyt
Python
PattanAhmed @R16 Hi,
Here are some amazing modules that you can learn!
1. Pytz
Pytz module is used for making python know your Timezones there
2. DateTime
DateTime module is used for dealing with Dates & Time or sometimes Months and Years.
> DateTime and Pytz go hand-in-hand when compiled together. :)
3. Requests
Requests are used to get an URL of a website in your code
4. BeautifulSoup
BeautifulSoup is used for parsing HTML.
5. Pandas
Pandas module is used for making the data into a CSV (Excel) Sheet.
2 years ago
Muffinlavania Here are three important ones:
Random
Can be used to either 1) pick a random number 2) pick a random item from a list, and more!
Picking a random number
import random #random module
random_number = random.randint(1,10)
#random.randint(): gives a random number between the two numbers in the parenthesis
Picking a random item from a list
import random #Again
starter_list = ['idk','lol','rickroll'] #A list with three elements
randomelement = random.choice(starterlist)
#random.choice(): picks a rando2 years ago
I am trying to make the while statement work in ‘python with turtle’ but it is not working properly, please if you can help me then I will be very gra
Please see my repl (python with turtle) project and help me with the while statement.
Python (with Turtle)
PattanAhmed @R16 Hi,
Here is the little program with While Loop:-
import turtle
import random
walk = random.randint(50, 100)
number = random.randint(1,4)
if number == 1:
heading = 0
elif number == 2:
heading = 90
elif number == 3:
heading = 180
elif number == 4:
heading = 270
steps = 0
while steps < 9:
turtle.forward(walk)
turtle.seth(heading)
steps = steps+1
It has some additional things but you can get an idea of how to use a while loop in Python Turtle.
If you have any 2 years ago
Bookie0 hi there!
so i see that the while statement is on line 47 and that it is commented. what exactly do you want to do/achieve?
Screen Shot 2020-08-08 at 12.03.25 PM
in this case, as racecar = 'full', the while loop will always run because racecar = 'full'. so the function square() should run.
so what exactly is your question? ;)
2 years ago