Latest Posts:

How to write a program to accepts a string from console and print the characters that have even indexes?

July 28, 2019 12:05 pm

Example: If the following string is given as input to the program:H1e2l3l4o5Then, the output of the program should be:Hello print(“Please enter text to print::”) inputchars = input() if inputchars: string = “” for i in inputchars: if inputchars.index(i)%2 == 0: string += str(i) print(‘——————-‘) print(“You Entered:”, inputchars) print(“Result:”) print(string) # OUTPUT:: Please enter text to print:: H1e2l3l4o5 ——————- You Entered: H1e2l3l4o5 Result: Hello

How to find the odd and even numbers using Python?

July 28, 2019 10:37 am

Here, In below code, user can enter two numbers to find the odd and even numbers between them. The number must be in between 1000 and 3000. .COM @ Rs.399 For 1 Year print(“Please Enter the Number between 1000 and 3000”) print(“Enter the First Number:”) first_number = input() print(“Enter the Second Number:”) second_number = input() print(“First Number: “, first_number) print(“Second Number: “, second_number) if int(first_number) >= 1000 and int(second_number) <= 3000: first_number = int(first_number) second_number = int(second_number)

How to read or write files in Python?

July 27, 2019 6:51 pm

Before any files to read we have to know how to Open & Close the files. .COM @ Rs.399 For 1 Year # Open Function: we can open a file using python build in function open() file_object = open(file_name, file_access_mode ) file_name = It is the file name or the full file path.file_access_mode = File access mode is to determine, open file for read, write , append etc. ModesDescriptionrOpens a file for read only purpose.rbOpen a file for reading only in binary format.r+Open a file for both operation reading & writing.rb+Open a file for both reading & writing in binary format.wOpen a file

How to redirect to https with www using .htaccess?

July 11, 2019 7:52 pm

First check in your server .COM @ Rs.399 For 1 Year Redirect to https and www: By using the .htaccess technique redirects to the https and www versions of your web pages to https://www.example.com. Add to site’s root .htaccess file: RewriteEngine on RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^(.*)$ RewriteRule (.*) https://www.%1/$1 Here, Checks if HTTPS is off, or if the request does not include www, If either condition matches, the request follow the rule and it is redirected to the https://www.example.com Redirect to https and non-www RewriteEngine

Best & Cheapest Web Hosting in India for starter with Xozz

July 11, 2019 5:06 pm

We always want to start our own website. But Due to the huge hosting Charge, we avoid our decisions. .COM @ Rs.399 For 1 Year I was also finding these types of hosting provider. Initially we don’t have more money to invest on the website & hosting etc. After searching & hosting on many free hosting accounts, I found xozz.in. Best Web Hosting & Re-seller Hosting in India Xozz.in is the best for me. I don’t have huge traffic in my website that I have to need more space. Here xozz team are providing the hosting with a minimum costing. If i can afford this hosting you can also.

How to Call a function on close bootstrap modal using Jquery?

June 29, 2019 7:44 pm

Want to run a function , On Close Bootstrap Modal. .COM @ Rs.399 For 1 Year # On Show or Open a Bootstrap Modal, Call a function $(‘#modal’).on(‘shown.bs.modal’, function (e) { // Execute Your Codes }) # On Close or Hide a Bootstrap Modal, Call a function $(‘#modal’).on(‘hidden.bs.modal’, function (e) { // Execute Your Codes }) For any suggestion or feedback, queries please comment to improve.

How to change a database table prefix in PhpMyAdmin?

June 23, 2019 12:00 pm

Here, to Change the database table prefix from previous to new one, OR add table_prefix to the tables. .COM @ Rs.399 For 1 Year How to change e database table prefix: First Log In to PhpMyAdmin.Now, Select the Database want to change.Click on the Structure and here all tables are listed. Now, in the bottom position, mark check all or Select the tables want to update or modify.A Modal will Pop Up, here fill the fields.In Modal: From : Enter Old table prefixIn Modal: To: Enter new table prefixIn Modal: Click Continue. Now all done. Check your tables.