am using python for visual studio 2012 (PTVS2012). So far I only know C# and I have just started learning Python. I have a couple questions
Ok so in C# from my knowledge you just make a method of any type such as an integer followed by the parameters such as static void Main(). In python the only method I know of right now is def Main() but am sure I will learn how to code more methods. In C# braces surround a block of code inside a method. Does python need braces aswell because in PTVS it is giving me this "expected an indent block" whenever I try to put braces in a method. For example the code sample below is giving me this error. Basically do I need braces or not?
def Main(): {
}
How to indent in PTVS? Like if you use c# in PTVS it indents automatically and it just makes the code nicer to look and understand
Guess this is a follow up from number 2, in my tutorial right now for python am learning how to do loops which I already know from C#. So for example
a = 0
while a < 10: a = a + 1 print (a)
In C# you would incase the code to be executed in the loop using braces and indent it also? Does python need braces and indenting aswell in PTVS?