+ 1

What is the best way to practice and use "Python"

i'm a beginner and need pro tips in programming properly. thanks in advance.

9th Dec 2016, 3:15 AM
Andrew Jackson
Andrew Jackson - avatar
9 Antworten
+ 10
Honestly, after you get comfortable with the syntax and whatnot. Stop wasting time and try to do a project and JUST DO IT. Sorry for the caps lol, but many people when they're starting off they fiddle around with many not-so-important things. Like do a quick google search for python projects to do. Find one that interest you. Don't know how to do the project look it up, try to make a spin-off. Finished that project? Make it better, implement an improvement. Done? Look up another project. Don't stop until it's complete, even if it is challenging. Don't say,"I don't know how to do that so let me find something else". You should say, "Oh, I don't know how to do that, let me look it up". Mistakes are good, MAKE ERRORS.... but learn from them and prosper....
9th Dec 2016, 3:44 AM
Don
Don - avatar
+ 4
Perfect !!!
9th Dec 2016, 3:58 AM
Prasenjit Das
Prasenjit Das - avatar
+ 4
solve your Math lessons by python, like this This is a program to solve the equation of the second degree good luck!!! import math a=float(input("Enter number a= ")) print (a) b=float(input("Enter number b= ")) print (b) c=float(input("Enter number c= ")) print(c) if a==0: x=-c/b print("This is equation of the first degree\n","x = ",x) else:delta=b*b-4*a*c if delta<0:print (">>Sqrt(delta) cannot be defined\n") else: try: t=math.sqrt(delta) print("Sqrt(delta)= ",t) if t<0:print("No solution") if t>0: x1=(-b+t)/(2*a) x2=(-b-t)/(2*a) print("Two solutions") print("x1= ",x1) print("x2= ",x2) except: x=-b/2*a print ("Double solution") print ("x= ",x) print("-"*7,"This is programmed by Duvabi","-"*7)
10th Dec 2016, 2:59 AM
School Dog
+ 3
@Duvabi wha is that i copied the code and it requested an input and now im lost
10th Dec 2016, 3:37 AM
Andrew Jackson
Andrew Jackson - avatar
+ 2
so projects... LIKE WHAT!!! lol i also am not sorry for the caps but yeah projects like what? and thanks for taking the time to comment you guys your print(x = 1) input(x / 10)
9th Dec 2016, 4:50 AM
Andrew Jackson
Andrew Jackson - avatar
+ 2
damn i mean input(x = 11)
9th Dec 2016, 4:51 AM
Andrew Jackson
Andrew Jackson - avatar
+ 2
There are 3 inputs which are numbers. You could check out my code: solving equation of the second degree. Thanks for visiting!!!
12th Dec 2016, 11:08 PM
School Dog
+ 1
code to solve the permutation try: n=int(input()) print(" n = ",n) m=n if n == 0:print(m,"! = ",1,"\n") else: for i in range(1,n): n=n*i print (m,"! = ",n,'\n') except ValueError: print("ValueError : invalid literal for int() with base 10\nPlease! Enter a number.\n") finally: print('-'*7,"This is programmed by Duvabi",'-'*7)
11th Jan 2017, 6:52 AM
School Dog