What is Python?

Tripxxlt
by Tripxxlt · 6 posts
3 years ago in Python
Posted 3 years ago · Author
Explain Python and how to use it please asap
Posted 3 years ago
Code
# Print Statements name = input("Enter your name: ") '''Takes input from user and stores into variable: name''' age = input("Enter your age: ") '''Takes input from user and stores into variable: age''' print("Hello " + name + "! You are " + age + ".") '''Prints using input information''' 


# Simple Calculations num1 = input("Enter the first number: ") num2 = input("Enter the second number: ") result = int(num1) + float(num2) '''Input from users in python are automatically converted to strings. In order to add the numbers we need to convert the strings to numbers. One thing we can do is result = int(num1) + int(num2).  Remember that int is just for whole number.  If your input number contains a decimal, we must use float.''' print(result)

# If Statements  is_male = True is_tall = False '''Boolean variable set to true''' if is_male:     print("You are a male.") '''it wouldn't have printed anything if is male was set to false.'''

 if is_male:     print("You're a male.") else:     print("You're not a male.")
 
print("\n")
 
if is_male or is_tall:     print("You're a male or tall or both.") else:     print("You're neither male nor tall")
 
print("\n")
 
if is_male and is_tall:     print("You're a male and tall.") elif is_male and not(is_tall):     print("You're a short male.") elif not(is_male) and is_tall:     print("You're a short but not a male.") else:     print("You're either not male or not tall or both.")


# While loop i = 1 while i <= 10:     print(i)     i = i + 1     '''short hand for i = i + 1 is i += 1 in python'''
 
print("Done with loop."


# For Loops
 
for letter in "sammy":     print(letter)
 
'''For each letter in sammy I want to print out a letter. This prints out all the letters in the name.'''
 
print("\n")
 
friends = ["Jim", "Karen", "Pam"] for name in friends:     print(name)
 
for index in range(3, 10):     print(index) '''prints numbers 3 - 10'''
 
for index in range(len(friends)):     print(friends[index]) '''len(friends) = 3 so it prints out 0, 1, 2 values.'''
Posted 3 years ago
i love to know more about python. thanks for posted this video .
Posted 4 months ago
Python is commonly used for developing websites and software, task automation, data analysis, and data visualization. Since it’s relatively easy to learn, Python has been adopted by many non-programmers such as accountants and scientists, for a variety of everyday tasks, like organizing finances.
Some things include:

i) Data analysis and machine learning

ii) Web development

iii) Automation or scripting

iv) Software testing and prototyping

v) Everyday tasks


Data analysis and machine learning-
Python has become a staple in data science, allowing data analysts and other professionals to use the language to conduct complex statistical calculations, create data visualizations, build machine learning algorithms, manipulate and analyze data, and complete other data-related tasks.

Python can build a wide range of different data visualizations, like line and bar graphs, pie charts, histograms, and 3D plots. Python also has a number of libraries that enable coders to write programs for data analysis and machine learning more quickly and efficiently, like TensorFlow and Keras.



Web development-
Python is often used to develop the back end of a website or application—the parts that a user doesn’t see. Python’s role in web development can include sending data to and from servers, processing data and communicating with databases, URL routing, and ensuring security. Python offers several frameworks for web development. Commonly used ones include Django and Flask.

Some web development jobs that use Python include back-end engineers, full stack engineers, Python developers, software engineers, and DevOps engineers.


Automation or scripting-
If you find yourself performing a task repeatedly, you could work more efficiently by automating it with Python. Writing code used to build these automated processes is called scripting. In the coding world, automation can be used to check for errors across multiple files, convert files, execute simple math, and remove duplicates in data.

Python can even be used by relative beginners to automate simple tasks on the computer—such as renaming files, finding and downloading online content or sending emails or texts at desired intervals.


Everyday tasks-
Python isn't only for programmers and data scientists. Learning Python can open new possibilities for those in less data-heavy professions, like journalists, small business owners, or social media marketers. Python can also enable non-programmers to simplify certain tasks in their lives


Many youtube videos will give free courses for beginners and i suggest trying them out


Source: https://www.coursera.org/articles/what- ... ing-python

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts