LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-09-2015, 11:52 PM   #1
giuna
LQ Newbie
 
Registered: Aug 2015
Posts: 17

Rep: Reputation: Disabled
python thing, I'm begginer, no output


def function01(f):
f()
f()

def function02():
print 'Hi'
print 'Bye'


function01(functiont02)

---

okay, here is the thing what I'm doing(supose I'm doing). from the way I think this input should give me this output:
"
Hi
Bye
Hi
Bye
"
instead it gives me nothing, not even error. I'm begginer. I'm learning from book. please give me some advise what should I do?

Last edited by giuna; 08-10-2015 at 04:42 AM.
 
Old 08-10-2015, 12:31 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,869
Blog Entries: 1

Rep: Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870Reputation: 1870
Please read this: http://www.linuxquestions.org/questi...gs-4175464257/
 
Old 08-10-2015, 03:54 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,503

Rep: Reputation: Disabled
These may help.

https://docs.python.org/2/tutorial/
https://docs.python.org/3/faq/
 
Old 08-10-2015, 11:05 AM   #4
giuna
LQ Newbie
 
Registered: Aug 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
it's working now. Appears that I am not mistaken
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python output MTK358 Programming 4 06-14-2010 08:02 PM
Colored output in Python MTK358 Programming 2 12-24-2009 08:01 PM
newbie in Python: classes confusion, what is this SELF thing? browny_amiga Programming 4 11-11-2008 08:42 AM
LXer: Basics 101: ruby python bash perl expect php, How do the exact same thing in th LXer Syndicated Linux News 0 10-05-2008 06:00 AM
newbie python question: doing more than one thing in a for loop SerfurJ Programming 1 03-18-2004 10:14 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration