Python Forum
i have problems understanding 2 functions,look for help.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i have problems understanding 2 functions,look for help.
#1
these 2 functions are
def print_end():
    print()

def nothing():
    "do nothing"
for the first function, what is meant by print with no argument?
for the second function,I just cannot understand the syntax and functionality here.
Thanks
Reply
#2
print('hello')
print()
print()
print()
print()
print()
print('world')

def foobarbazqux():
    "I'm foobarbazqux()'s function docstring"

foobarbazqux()
Reply
#3
Thanks,I get it.

(Dec-05-2018, 11:05 AM)Gribouillis Wrote:
print('hello')
print()
print()
print()
print()
print()
print('world')

def foobarbazqux():
    "I'm foobarbazqux()'s function docstring"

foobarbazqux()
Thanks very much
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with understanding class index. Brainbit 3 937 Sep-20-2022, 07:52 PM
Last Post: Brainbit
  Improving my understanding of functions and methods menator01 2 2,146 Apr-24-2020, 06:26 AM
Last Post: menator01
  Need help understanding a couple of functions (encrypt,decrypt, int_to_bytes) xoani 0 2,005 Jun-09-2019, 03:25 PM
Last Post: xoani
  Help in understanding scope of dictionaries and lists passed to recursive functions barles 2 3,212 Aug-11-2018, 06:45 PM
Last Post: barles
  Understanding Functions Dez 4 3,610 Nov-04-2017, 12:33 PM
Last Post: Dez
  Problems with Interrupts/ callback functions in Python for an Alarm Clock project Henry1 1 4,862 Dec-16-2016, 10:17 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020