Skip to main content

Posts

Showing posts from March, 2022

Tips on Learning Python From Zero

  Tips to learn Python from zero Practical tips to approach your learning process If you are planning to learn Python, how long and how smooth the learning process is going to be will depend on a number of factors such as: your background:  whether you have any previous exposure to other programming languages, specifically, object-oriented programming languages your commitment:  how much effort you are going to dedicate on a weekly basis your approach:  how you are going to learn 🍁 Recently, I was reflecting back when I first started learning Python seriously about a year ago. In this post, I share my top 5 tips on the third factor 🍁 that came from my reflection for those who are starting their journey. 1. Understand the basics - Understanding the basics of Python will provide you long-term benefits.  2.Write your code on paper.  3. Practice.  4. Contribute to open source.  5. Keep a regular check on Python programming sources.  6. Don't fo...

How To Create Super User In Django

  1. Install Python 2. Open Command Prompt 3. Type pip install Django 4. Go to your new folder directory 5. Open powershell or CMD 6. Run django-admin 7. Run django-admin startproject projectname 8. And Its Done Creating an admin user ¶ First we’ll need to create a user who can login to the admin site. Run the following command: $ python manage.py createsuperuser Enter your desired username and press enter. Username: admin You will then be prompted for your desired email address: Email address: admin@example.com The final step is to enter your password. You will be asked to enter your password twice, the second time as a confirmation of the first. Password: ********** Password (again): ********* Superuser created successfully. Start the development server ¶ The Django admin site is activated by default. Let’s start the development server and explore it. Recall from Tutorial 1 that you start the development server like so: $ python manage.py runserver Now, open a Web browser and...

Top 20 Programming questions asked in an interview

Programming questions are integral part of an interview for the developer's position. No matter which programming language you master, it is expected that you are familiar with fundamental concepts of programming. Coding interviews mainly comprise of data structure and algorithm related questions along with logical questions. Coding  interview questions  are related to array, linked list, string, binary tree, and questions from algorithms. Here are 20 most commonly asked interview questions. You can easily find answers to these questions on Google to prepare yourself for the interview. How is a bubble sort algorithm implemented? How to print the first non-repeated character from a string? How to find the first non repeated character of a given String? How do you find duplicate numbers in an array if it contains multiple duplicates? How do you remove duplicates from an array in place? How are duplicates removed from an array without using any library? How do you find the middle...

What is web scraping?

Web scraping is the process of collecting structured web data in an automated fashion. It’s also called web data extraction. Some of the   main use cases of web scraping   include price monitoring,   price intelligence , news monitoring,   lead generation , and   market research   among many others. In general, web data extraction is used by people and businesses who want to make use of the vast amount of publicly available web data to make smarter decisions. If you’ve ever copied and pasted information from a website, you’ve performed the same function as any web scraper, only on a microscopic, manual scale. Unlike the mundane, mind-numbing process of manually extracting data, web scraping uses intelligent automation to retrieve hundreds, millions, or even billions of data points from the internet’s seemingly endless frontier. How do you use a data scraper? Whether you’re using a data scraper tool yourself or outsourcing the job to a web data extraction sp...

How to Install PyCharm? (Windows, Mac, Ubuntu)

  A little introduction PyCharm is one of the widely used IDE for python programming and used by many programmers these days. It is available in three editions: Professional, Community and Educational (Edu). We will prefer Edu edition as it is an open source and free to use. Also, it fits our purpose of learning python as a beginner. If you have already installed pycharm or some other compiler you can skip this and read the tutotrial here>>  Let's Get Started with Python Install PyCharm You can go to the official page and follow the guide to installation, to go to the official page  click here  or stick with me and follow the steps below. This is the direct link to install PyCharm Edu>>  click here Already Installed PyCharm Community or Professional? Then you just need to install EduTools Plugin. To install the plugin follow these simple steps: 1.         Go to Files>>Settings... or Press Ctrl+Alt+S to open Se...

Python 3 Installation on Windows

  Step 1: Select Version of Python to Install The installation procedure involves downloading the official Python .exe installer and running it on your system. The version you need depends on what you want to do in Python. For example, if you are working on a project coded in Python version 2.6, you probably need that version. If you are starting a project from scratch, you have the freedom to choose. If you are learning to code in Python, we recommend you  download both the latest version of Python 2 and 3 . Working with Python 2 enables you to work on older projects or test new projects for backward compatibility. Step 2: Download Python Executable Installer Open your web browser and navigate to the  Downloads for Windows section  of the  official Python website . Search for your desired version of Python. At the time of publishing this article, the latest Python 3 release is version 3.7.3, while the latest Python 2 release is version 2.7.16. Select a lin...

Strings in Python - TipsForCse

STRINGS & CONSOLE OUTPUT Strings Another useful data type is the  string . A  string  can contain letters, numbers, and symbols. name =  "Ryan" age =  "19" food =  "cheese" In the above example, we create a variable  name  and set it to the string value  "Ryan" . We also set  age  to  "19"  and  food  to  "cheese" . Strings need to be within quotes.

Hello World Program In Python

  PYTHON SYNTAX Hello World! If programming is the act of teaching a computer to have a conversation with a user, it would be most useful to first teach the computer how to speak. In Python, this is accomplished with the  print  statement. print "Hello, world!" print "Water; there is not a drop of water there! Were N iagara but a cataract of sand, would you travel yo ur thousand miles to see it?" A  print  statement is the easiest way to get your Python program to communicate with you. Being able to command this communication will be one of the most valuable tools in your programming toolbox.

Best Python Projects For Final Year Computer Science

Python Final Year Projects :   1. Hangman Project in Python   Python Project Idea – The objective of this project is to implement the hangman game using Python. This project doesn’t require any external modules rather just needs random and time modules of Python. Python functions and loops are enough to develop a hangman game                                                                                                                    2. Rock Paper Scissors Python Game   Python Project Idea – The rock paper scissors is a game played between two players that have few sets of rules. We can define the rules and conditions ...