Author Topic: local variables and global variables in Python ?  (Read 48 times)

islamicastrologer

  • Newbie
  • *
  • Posts: 38
  • Islamic Astrology
  • Location: Jaipur
    • View Profile
    • Islamic Astrology Specialist
local variables and global variables in Python ?
« on: September 20, 2019, 04:41:33 am »
Hello Dear,

              Please Tell Me What are local variables and global variables in Python ?

jupitergem

  • Full Member
  • ***
  • Posts: 168
  • Welcome to Digital Marketing Forum!
    • View Profile
Re: local variables and global variables in Python ?
« Reply #1 on: September 23, 2019, 07:47:52 pm »
There are two types of variables: global variables and local variables. A global variable can be reached anywhere in the code, a local only in the scope. A global variable (x) can be reached and modified anywhere in the code, local variable (z) exists only in block 3.

priyankaplus

  • Jr. Member
  • **
  • Posts: 67
  • Welcome to Digital Marketing Forum!
    • View Profile
    • Independent Escort in Delhi Call Girls
Re: local variables and global variables in Python ?
« Reply #2 on: January 08, 2020, 04:51:42 pm »
Global and Local variables. There are two types of variables: global variables and local variables. A global variable can be reached anywhere in the code, a local only in the scope. A global variable (x) can be reached and modified anywhere in the code, local variable (z) exists only in block 3

 

Digital Marketing Forum is a do-follow forum, post and discuss IT topics here and get dofollow signature. Discuss about SEO, SMO, Directory Submission, 301 redirection, robots, social bookmarking, Web design and development.