Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: function help (totaly beginner)
Post: RE: function help (totaly beginner)
If you are using Python 3.x then you can try the end keyword(*For printing the Stars*)
print ("Enter the Data: ")
Data=input()
print('*',end='')
for i in Data:
print(i,end='*')Regards,
Rizvi |
|
MeeranRizvi |
Homework |
16 |
7,386 |
Dec-14-2017, 01:30 PM |
|
|
Thread: [TkInter]Simple Python Homework
Post: RE: [TkInter]Simple Python Homework
Hi Zaji,
Based on your need, first of all, you should get the word what you typed in the entry box and then you have to print it by clicking the submit button
I have modified your code based on your... |
|
MeeranRizvi |
Homework |
4 |
4,071 |
Dec-14-2017, 08:08 AM |
|
|
Thread: Google Calendar & Python
Post: Google Calendar & Python
Hello Guys,
In this python script i am going to sync my google calendar events to the script.
I have gone through the setup of the API, I know that it works because if I just use the example script to... |
|
MeeranRizvi |
General Coding Help |
2 |
8,491 |
May-28-2017, 09:01 AM |
|
|
Thread: Send the output from a running script
Post: Send the output from a running script
Hello Guyz,
Here i am writing a script by pinging an ip continously.
def ip_ping():
import subprocess
b= "172.30.36.136"
a = subprocess.Popen(["ping","-t", b], stdout=subprocess.PIPE).s... |
|
MeeranRizvi |
Homework |
1 |
2,672 |
Apr-06-2017, 02:43 PM |
|
|
Thread: search for a data in my browser via script
Post: search for a data in my browser via script
Hello guys,
Here i am writing a script which will open my chrome browser and opens the URL www.google.com.
But how to search for a data via script.
for example i need to search for 'Rose' in google.co... |
|
MeeranRizvi |
Web Scraping & Web Development |
3 |
3,998 |
Feb-06-2017, 02:36 PM |
|
|
Thread: Scroll bar height is not fixed with Text widget
Post: RE: Scroll bar height is not fixed with Text widge...
Here i done with (ipady) to fix the scroll bar height.
from Tkinter import *
root = Tk()
options = ["10","20","30"]
var = StringVar(root)
var.set('10')
Value = Label(root,text="Value:", font="-w... |
|
MeeranRizvi |
GUI |
2 |
15,465 |
Feb-06-2017, 12:24 PM |
|
|
Thread: Scroll bar height is not fixed with Text widget
Post: Scroll bar height is not fixed with Text widget
Hello Guys,
Here i am creating a GUI like Search engine.The problem what i am getting is the scroll bar is not fixed with Text widget.Even though i used sticky.
Thanks in advance.
from Tkinter impo... |
|
MeeranRizvi |
GUI |
2 |
15,465 |
Feb-06-2017, 11:21 AM |
|
|
Thread: Hide text in entry box when i click on it.
Post: RE: Hide text in entry box when i click on it.
This could be a solution for this.
from Tkinter import *
def clear_search(event):
b.delete(0, END)
obj = Tk()
b = Entry(obj,width=100)
b.insert(0,"Enter the value to search")
b.bind("<Button-1&... |
|
MeeranRizvi |
GUI |
1 |
11,109 |
Jan-25-2017, 10:38 AM |
|
|
Thread: Hide text in entry box when i click on it.
Post: Hide text in entry box when i click on it.
Hello Guys,
Here i am creating a entry box with some text,i need to hide the text when i click on it.
Here is my code
from Tkinter import *
obj = Tk()
b = Entry(obj,width=100)
b.insert(0,"Enter the va... |
|
MeeranRizvi |
GUI |
1 |
11,109 |
Jan-25-2017, 07:29 AM |
|
|
Thread: Search engine
Post: Search engine
Hello Guys,
Here i need to develop a GUI Like a search engine.Whatever i give the input in my text box it should enter into the browser and search for the input and it should return the first 10 links... |
|
MeeranRizvi |
GUI |
0 |
5,043 |
Jan-24-2017, 08:21 AM |
|
|
Thread: How to print the IP which shows destination host unreachable
Post: How to print the IP which shows destination host u...
Hello Guys,
Here i am writing a script to ping a certain range of ip in python.I just did with which ip is pingable and which ip is not pingable,i just need to print which ip shows destination host un... |
|
MeeranRizvi |
Homework |
7 |
8,524 |
Jan-11-2017, 07:02 AM |
|
|
Thread: print 3 table in a 3*3 matrix format
Post: print 3 table in a 3*3 matrix format
Hello guys,
Here i have to print 3 table in 3*3 matrix format
x=3
for i in range(1,10):
print(x*i)it gives me the output of 3 table upto 9.
But how to print these values in a 3*3 matrix format? |
|
MeeranRizvi |
Homework |
2 |
4,272 |
Jan-04-2017, 12:33 PM |
|
|
Thread: maximum and minimum element from the list and return output in dict
Post: maximum and minimum element from the list and retu...
Hi guys,
Find maximum and minimum element from the list and return output in dict i.e dict:{'Minimum : value,'Maximum':value'}
i am having a list of values
lis=[10,25,45,7,90]i just need to find the... |
|
MeeranRizvi |
Homework |
1 |
3,742 |
Jan-02-2017, 12:55 PM |
|
|
Thread: IP address validation
Post: IP address validation
Hello guys,
In this program i need to check whether the given ip is valid or not?
print "Enter the IP:"
save=raw_input()
regex="^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0... |
|
MeeranRizvi |
Homework |
2 |
6,998 |
Jan-02-2017, 09:03 AM |
|
|
Thread: The int that appears an odd number of times.
Post: RE: The int that appears an odd number of times.
Yeah You are right skaperen!
Now i changed my input to a new one,i written code also it works as expect
a = [1,2,3,2,4,2,4,3,5,5,1]
result = dict((i, a.count(i))for i in a)
for i in result:
if a.count... |
|
MeeranRizvi |
Homework |
6 |
6,536 |
Dec-30-2016, 09:17 AM |
|
|
Thread: The int that appears an odd number of times.
Post: RE: The int that appears an odd number of times.
i did with dictionary
a = [1,2,3,2,4,2,4,3,5,5,1]
result = dict((i, a.count(i)) for i in a)
print resultI just got the counts but how to print only the int that appears an odd no of times
Output:{1: 2... |
|
MeeranRizvi |
Homework |
6 |
6,536 |
Dec-30-2016, 06:36 AM |
|
|
Thread: The int that appears an odd number of times.
Post: The int that appears an odd number of times.
Hello Guys,
Here i am having a array
array=[1,2,3,2,4,2,4,3,5,5,1]I just need to find out which number that appears an odd no of times
For this array the output should be:
Output:2How should do tha... |
|
MeeranRizvi |
Homework |
6 |
6,536 |
Dec-30-2016, 05:47 AM |
|
|
Thread: Print the index of the vowels in a string
Post: RE: Print the index of the vowels in a string
I changed the code like this!
it works as expect **smile**
li=['a','e','i','o','u']
word="Rizvi"
for i in range(len(word)):
if word[i] in li:
print iOutput:1
4 |
|
MeeranRizvi |
Homework |
4 |
14,680 |
Dec-29-2016, 12:40 PM |
|
|
Thread: Print the index of the vowels in a string
Post: Print the index of the vowels in a string
Hello guys,
Here i need to print the index of the vowels in a string
Here is my code
li=['a','e','i','o','u']
word='Rizvi'
for i in word:
if i in li:
print word.index(i)The expected outp... |
|
MeeranRizvi |
Homework |
4 |
14,680 |
Dec-29-2016, 08:37 AM |
|
|
Thread: concat two list based on array
Post: RE: concat two list based on array
Yeah i knew it,
BUt how to do without zip? |
|
MeeranRizvi |
Homework |
9 |
7,583 |
Dec-21-2016, 09:56 AM |