Posts

Java Script Learning Notes

Image
what can be done with JS ? - not yet another language like Java - 1995 it was created for netscape browser - previously the had java applets - runs on web - client side - originally a scripting language create - effects - gaming - IOT Full Stack Application - Youtube [AngularJS] Examples - http://matthew.wagerfield.com/parallax/ - https://threejs.org/ - https://www.leapmotion.com/ Press F12 to open developer tools to kick start exploring Java Script. alert("It works");   confirm("Are you ready to press okye ??"); prompt("do u wish to login ?"); No Space Required: alert("It works");confirm("Are you ready to press okye ??");confirm("Are you ready to press okye ??"); Make sure to reduce the whitespaces and blacnk lines. JS calculator Direct entry in console 2+2; 4  (will be displayed ) 2-2 0 (will be displayed) similaryly Multiplication and division Multiplocat...

The second wish is to write an application

The second wish is to write an application Functions - reusable code used to perform certain action syntax: def  func_name:     action 1      ....     return def multiple_args(name, *args):     print(name)     print(args) def multiple_keyargs(name, **kwargs):     print(name)     print(kwargs["role"],kwargs["power_level"]) multiple_args("Goku","hero","infinity") multiple_keyargs(name="Goku",role="hero",power_level="infinity", finishing_move="kameyameah") Files charecters = [] def get_char_title(): char_title = [] for charecter in charecters: char_title.append(charecter["name"].title()) return char_title def print_char_title(): char_title = get_char_title() print(char_title) def add_char(name, chr_id=001): charecter = {"name": name, "chr_id": chr_id} charecters.append(charecter) def save_file(charecter): try: ...

The World Knows What's First - It's Everything in one

The World Knows What's First - It's Everything in one you just no need to take care of stupid braces meanwhile your IDE will take care of your indents Simple Hello world Execution ------------------------------------ Type Python in Console to execute the code, example 1: Python >>> >> print ("Hello") Hello example 2: Create a text file hello.py print ("Hello") Execute the command python hello.py Output -------- Hello Data Types No need to define data types (Dynamically Typed Language ). Directly variable mapping can be done example: name = "Freeza" number = 5 where name is treated as string and number is treated as integer. Its developer friendly but when it goes big it has some its own draw back as the IDE itself will not handle the issues for which Python 3 has some solution. Type hinting example: def print_it (a: int ) -> int:     return a if __name__ == ...

Installing Python and Selecting IDE

Installing Python and Selecting IDE ------------------------------------------- Installing Python --------------------- Go to the following website to download the required packages for installing python https://www.python.org/downloads/ It will automatically download with respect to your operating system but make sure to download 64 bit if you have 64 bit operating system so as to use Python to a better extent. It's better to choose Python 3 because the support for Python 2.7 will be only upto 2020. Once installed add python bin directory to the PATH variable. During installation itself it can be done. Pip gets installed along with python if you install Python 3. Selecting the IDE --------------------- As on now Pycharm seems to be the best in class available IDE and it's Community edition which is completely free. You can also get a month subscription of enterprise edition for free.. what else python can do ? Listing few other options that can be ...

About Me

Hi, I am here to share my experiences with Python hope you like this and this helps you in one way or the other ~ Goku :)